Class RealmsBackupScreen.BackupObjectSelectionListEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
net.minecraft.client.realms.gui.screen.RealmsBackupScreen.BackupObjectSelectionListEntry
- All Implemented Interfaces:
Element,Narratable,Navigable
- Enclosing class:
RealmsBackupScreen
@Environment(CLIENT)
private class RealmsBackupScreen.BackupObjectSelectionListEntry
extends AlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
- Mappings:
Namespace Name official enw$bintermediary net/minecraft/class_4381$class_4383named net/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClickableWidget>private static final ButtonTexturesprivate static final intprivate static final intprivate @Nullable TexturedButtonWidgetprivate final Backupprivate static final ButtonTexturesprivate @Nullable TexturedButtonWidgetFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidprivate StringgetMediumDatePresentation(Date lastModifiedDate) booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.private voidupdateChangeList(Backup backup) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
field_44525
private static final int field_44525- See Also:
- Mappings:
Namespace Name Mixin selector official bLenw$b;b:Iintermediary field_44525Lnet/minecraft/class_4381$class_4383;field_44525:Inamed field_44525Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;field_44525:I
-
field_44526
private static final int field_44526- See Also:
- Mappings:
Namespace Name Mixin selector official cLenw$b;c:Iintermediary field_44526Lnet/minecraft/class_4381$class_4383;field_44526:Inamed field_44526Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;field_44526:I
-
CHANGES_BUTTON_TEXTURES
- Mappings:
Namespace Name Mixin selector official dLenw$b;d:Letx;intermediary field_45237Lnet/minecraft/class_4381$class_4383;field_45237:Lnet/minecraft/class_8666;named CHANGES_BUTTON_TEXTURESLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;CHANGES_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
-
RESTORE_BUTTON_TEXTURES
- Mappings:
Namespace Name Mixin selector official eLenw$b;e:Letx;intermediary field_45238Lnet/minecraft/class_4381$class_4383;field_45238:Lnet/minecraft/class_8666;named RESTORE_BUTTON_TEXTURESLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;RESTORE_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
-
mBackup
- Mappings:
Namespace Name Mixin selector official fLenw$b;f:Lemf;intermediary field_19761Lnet/minecraft/class_4381$class_4383;field_19761:Lnet/minecraft/class_4867;named mBackupLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;mBackup:Lnet/minecraft/client/realms/dto/Backup;
-
buttons
- Mappings:
Namespace Name Mixin selector official gLenw$b;g:Ljava/util/List;intermediary field_44527Lnet/minecraft/class_4381$class_4383;field_44527:Ljava/util/List;named buttonsLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;buttons:Ljava/util/List;
-
restoreButton
- Mappings:
Namespace Name Mixin selector official hLenw$b;h:Lesw;intermediary field_44528Lnet/minecraft/class_4381$class_4383;field_44528:Lnet/minecraft/class_344;named restoreButtonLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;restoreButton:Lnet/minecraft/client/gui/widget/TexturedButtonWidget;
-
infoButton
- Mappings:
Namespace Name Mixin selector official iLenw$b;i:Lesw;intermediary field_44529Lnet/minecraft/class_4381$class_4383;field_44529:Lnet/minecraft/class_344;named infoButtonLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;infoButton:Lnet/minecraft/client/gui/widget/TexturedButtonWidget;
-
-
Constructor Details
-
BackupObjectSelectionListEntry
- Mappings:
Namespace Name Mixin selector official <init>Lenw$b;<init>(Lenw;Lemf;)Vintermediary <init>Lnet/minecraft/class_4381$class_4383;<init>(Lnet/minecraft/class_4381;Lnet/minecraft/class_4867;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;<init>(Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;Lnet/minecraft/client/realms/dto/Backup;)V
-
-
Method Details
-
updateChangeList
- Mappings:
Namespace Name Mixin selector official aLenw$b;a(Lemf;)Vintermediary method_51239Lnet/minecraft/class_4381$class_4383;method_51239(Lnet/minecraft/class_4867;)Vnamed updateChangeListLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;updateChangeList(Lnet/minecraft/client/realms/dto/Backup;)V
-
addChange
- Mappings:
Namespace Name Mixin selector official aLenw$b;a(Ljava/lang/String;)Vintermediary method_51241Lnet/minecraft/class_4381$class_4383;method_51241(Ljava/lang/String;)Vnamed addChangeLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;addChange(Ljava/lang/String;)V
-
addInfoButton
private void addInfoButton()- Mappings:
Namespace Name Mixin selector official bLenw$b;b()Vintermediary method_51242Lnet/minecraft/class_4381$class_4383;method_51242()Vnamed addInfoButtonLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;addInfoButton()V
-
addRestoreButton
private void addRestoreButton()- Mappings:
Namespace Name Mixin selector official dLenw$b;d()Vintermediary method_51244Lnet/minecraft/class_4381$class_4383;method_51244()Vnamed addRestoreButtonLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;addRestoreButton()V
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLeuf;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
render
public void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>- Parameters:
index- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official aLesf$a;a(Lerz;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
-
getMediumDatePresentation
- Mappings:
Namespace Name Mixin selector official aLenw$b;a(Ljava/util/Date;)Ljava/lang/String;intermediary method_21176Lnet/minecraft/class_4381$class_4383;method_21176(Ljava/util/Date;)Ljava/lang/String;named getMediumDatePresentationLnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;getMediumDatePresentation(Ljava/util/Date;)Ljava/lang/String;
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>- Mappings:
Namespace Name Mixin selector official aLetg$a;a()Ltl;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
-