Class 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 eoc$b
intermediary net/minecraft/class_4381$class_4383
named net/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry
  • Field Details

    • field_44525

      private static final int field_44525
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leoc$b;b:I
      intermediary field_44525 Lnet/minecraft/class_4381$class_4383;field_44525:I
      named field_44525 Lnet/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 c Leoc$b;c:I
      intermediary field_44526 Lnet/minecraft/class_4381$class_4383;field_44526:I
      named field_44526 Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;field_44526:I
    • CHANGES_BUTTON_TEXTURES

      private static final ButtonTextures CHANGES_BUTTON_TEXTURES
      Mappings:
      Namespace Name Mixin selector
      official d Leoc$b;d:Leuc;
      intermediary field_45237 Lnet/minecraft/class_4381$class_4383;field_45237:Lnet/minecraft/class_8666;
      named CHANGES_BUTTON_TEXTURES Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;CHANGES_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
    • RESTORE_BUTTON_TEXTURES

      private static final ButtonTextures RESTORE_BUTTON_TEXTURES
      Mappings:
      Namespace Name Mixin selector
      official e Leoc$b;e:Leuc;
      intermediary field_45238 Lnet/minecraft/class_4381$class_4383;field_45238:Lnet/minecraft/class_8666;
      named RESTORE_BUTTON_TEXTURES Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;RESTORE_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
    • mBackup

      private final Backup mBackup
      Mappings:
      Namespace Name Mixin selector
      official f Leoc$b;f:Leml;
      intermediary field_19761 Lnet/minecraft/class_4381$class_4383;field_19761:Lnet/minecraft/class_4867;
      named mBackup Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;mBackup:Lnet/minecraft/client/realms/dto/Backup;
    • buttons

      private final List<ClickableWidget> buttons
      Mappings:
      Namespace Name Mixin selector
      official g Leoc$b;g:Ljava/util/List;
      intermediary field_44527 Lnet/minecraft/class_4381$class_4383;field_44527:Ljava/util/List;
      named buttons Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;buttons:Ljava/util/List;
    • restoreButton

      @Nullable private @Nullable TexturedButtonWidget restoreButton
      Mappings:
      Namespace Name Mixin selector
      official h Leoc$b;h:Letc;
      intermediary field_44528 Lnet/minecraft/class_4381$class_4383;field_44528:Lnet/minecraft/class_344;
      named restoreButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;restoreButton:Lnet/minecraft/client/gui/widget/TexturedButtonWidget;
    • infoButton

      Mappings:
      Namespace Name Mixin selector
      official i Leoc$b;i:Letc;
      intermediary field_44529 Lnet/minecraft/class_4381$class_4383;field_44529:Lnet/minecraft/class_344;
      named infoButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;infoButton:Lnet/minecraft/client/gui/widget/TexturedButtonWidget;
  • Constructor Details

    • BackupObjectSelectionListEntry

      public BackupObjectSelectionListEntry(Backup backup)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leoc$b;<init>(Leoc;Leml;)V
      intermediary <init> Lnet/minecraft/class_4381$class_4383;<init>(Lnet/minecraft/class_4381;Lnet/minecraft/class_4867;)V
      named <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

      private void updateChangeList(Backup backup)
      Mappings:
      Namespace Name Mixin selector
      official a Leoc$b;a(Leml;)V
      intermediary method_51239 Lnet/minecraft/class_4381$class_4383;method_51239(Lnet/minecraft/class_4867;)V
      named updateChangeList Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;updateChangeList(Lnet/minecraft/client/realms/dto/Backup;)V
    • addChange

      private void addChange(String metadataKey)
      Mappings:
      Namespace Name Mixin selector
      official a Leoc$b;a(Ljava/lang/String;)V
      intermediary method_51241 Lnet/minecraft/class_4381$class_4383;method_51241(Ljava/lang/String;)V
      named addChange Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;addChange(Ljava/lang/String;)V
    • addInfoButton

      private void addInfoButton()
      Mappings:
      Namespace Name Mixin selector
      official b Leoc$b;b()V
      intermediary method_51242 Lnet/minecraft/class_4381$class_4383;method_51242()V
      named addInfoButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;addInfoButton()V
    • addRestoreButton

      private void addRestoreButton()
      Mappings:
      Namespace Name Mixin selector
      official d Leoc$b;d()V
      intermediary method_51244 Lnet/minecraft/class_4381$class_4383;method_51244()V
      named addRestoreButton Lnet/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 in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/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:
      render in class EntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
      Parameters:
      index - the index of the entry
      y - the Y coordinate of the entry
      x - the X coordinate of the entry
      entryWidth - the width of the entry
      entryHeight - the height of the entry
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      hovered - whether the mouse is hovering over the entry
      Mappings:
      Namespace Name Mixin selector
      official a Lesl$a;a(Lesf;IIIIIIIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
    • getMediumDatePresentation

      private String getMediumDatePresentation(Date lastModifiedDate)
      Mappings:
      Namespace Name Mixin selector
      official a Leoc$b;a(Ljava/util/Date;)Ljava/lang/String;
      intermediary method_21176 Lnet/minecraft/class_4381$class_4383;method_21176(Ljava/util/Date;)Ljava/lang/String;
      named getMediumDatePresentation Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionListEntry;getMediumDatePresentation(Ljava/util/Date;)Ljava/lang/String;
    • getNarration

      public Text getNarration()
      Specified by:
      getNarration in class AlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
      Mappings:
      Namespace Name Mixin selector
      official a Letm$a;a()Ltl;
      intermediary method_37006 Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
      named getNarration Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;