Class RealmsBackupScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class RealmsBackupScreen
extends RealmsScreen
Mappings:
Namespace Name
official dnu
intermediary net/minecraft/class_4381
named net/minecraft/client/realms/gui/screen/RealmsBackupScreen
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldnu;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_19741 Lnet/minecraft/class_4381;field_19741:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
    • PLUS_ICON

      private static final Identifier PLUS_ICON
      Mappings:
      Namespace Name Mixin selector
      official b Ldnu;b:Lwb;
      intermediary field_22686 Lnet/minecraft/class_4381;field_22686:Lnet/minecraft/class_2960;
      named PLUS_ICON Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;PLUS_ICON:Lnet/minecraft/util/Identifier;
    • RESTORE_ICON

      private static final Identifier RESTORE_ICON
      Mappings:
      Namespace Name Mixin selector
      official c Ldnu;c:Lwb;
      intermediary field_22687 Lnet/minecraft/class_4381;field_22687:Lnet/minecraft/class_2960;
      named RESTORE_ICON Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;RESTORE_ICON:Lnet/minecraft/util/Identifier;
    • RESTORE_TEXT

      private static final Text RESTORE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official p Ldnu;p:Loi;
      intermediary field_26471 Lnet/minecraft/class_4381;field_26471:Lnet/minecraft/class_2561;
      named RESTORE_TEXT Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;RESTORE_TEXT:Lnet/minecraft/text/Text;
    • CHANGES_TOOLTIP

      private static final Text CHANGES_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official q Ldnu;q:Loi;
      intermediary field_26472 Lnet/minecraft/class_4381;field_26472:Lnet/minecraft/class_2561;
      named CHANGES_TOOLTIP Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;CHANGES_TOOLTIP:Lnet/minecraft/text/Text;
    • BACKUPS_TEXT

      private static final Text BACKUPS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official r Ldnu;r:Loi;
      intermediary field_26473 Lnet/minecraft/class_4381;field_26473:Lnet/minecraft/class_2561;
      named BACKUPS_TEXT Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;BACKUPS_TEXT:Lnet/minecraft/text/Text;
    • NO_BACKUPS_TEXT

      private static final Text NO_BACKUPS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official s Ldnu;s:Loi;
      intermediary field_26474 Lnet/minecraft/class_4381;field_26474:Lnet/minecraft/class_2561;
      named NO_BACKUPS_TEXT Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;NO_BACKUPS_TEXT:Lnet/minecraft/text/Text;
    • lastScrollPosition

      private static int lastScrollPosition
      Mappings:
      Namespace Name Mixin selector
      official t Ldnu;t:I
      intermediary field_19742 Lnet/minecraft/class_4381;field_19742:I
      named lastScrollPosition Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;lastScrollPosition:I
    • parent

      private final RealmsConfigureWorldScreen parent
      Mappings:
      Namespace Name Mixin selector
      official u Ldnu;u:Ldnx;
      intermediary field_19743 Lnet/minecraft/class_4381;field_19743:Lnet/minecraft/class_4388;
      named parent Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;
    • backups

      private List<Backup> backups
      Mappings:
      Namespace Name Mixin selector
      official v Ldnu;v:Ljava/util/List;
      intermediary field_19744 Lnet/minecraft/class_4381;field_19744:Ljava/util/List;
      named backups Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;backups:Ljava/util/List;
    • toolTip

      @Nullable private Text toolTip
      Mappings:
      Namespace Name Mixin selector
      official w Ldnu;w:Loi;
      intermediary field_19745 Lnet/minecraft/class_4381;field_19745:Lnet/minecraft/class_2561;
      named toolTip Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;toolTip:Lnet/minecraft/text/Text;
    • backupObjectSelectionList

      private RealmsBackupScreen.BackupObjectSelectionList backupObjectSelectionList
      Mappings:
      Namespace Name Mixin selector
      official x Ldnu;x:Ldnu$a;
      intermediary field_19746 Lnet/minecraft/class_4381;field_19746:Lnet/minecraft/class_4381$class_4382;
      named backupObjectSelectionList Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;backupObjectSelectionList:Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen$BackupObjectSelectionList;
    • selectedBackup

      private int selectedBackup
      Mappings:
      Namespace Name Mixin selector
      official y Ldnu;y:I
      intermediary field_19747 Lnet/minecraft/class_4381;field_19747:I
      named selectedBackup Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;selectedBackup:I
    • slotId

      private final int slotId
      Mappings:
      Namespace Name Mixin selector
      official z Ldnu;z:I
      intermediary field_19748 Lnet/minecraft/class_4381;field_19748:I
      named slotId Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;slotId:I
    • downloadButton

      private ButtonWidget downloadButton
      Mappings:
      Namespace Name Mixin selector
      official A Ldnu;A:Ldru;
      intermediary field_19749 Lnet/minecraft/class_4381;field_19749:Lnet/minecraft/class_4185;
      named downloadButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;downloadButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • restoreButton

      private ButtonWidget restoreButton
      Mappings:
      Namespace Name Mixin selector
      official B Ldnu;B:Ldru;
      intermediary field_19750 Lnet/minecraft/class_4381;field_19750:Lnet/minecraft/class_4185;
      named restoreButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;restoreButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • changesButton

      private ButtonWidget changesButton
      Mappings:
      Namespace Name Mixin selector
      official C Ldnu;C:Ldru;
      intermediary field_19751 Lnet/minecraft/class_4381;field_19751:Lnet/minecraft/class_4185;
      named changesButton Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;changesButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • noBackups

      private Boolean noBackups
      Mappings:
      Namespace Name Mixin selector
      official D Ldnu;D:Ljava/lang/Boolean;
      intermediary field_19752 Lnet/minecraft/class_4381;field_19752:Ljava/lang/Boolean;
      named noBackups Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;noBackups:Ljava/lang/Boolean;
    • serverData

      private final RealmsServer serverData
      Mappings:
      Namespace Name Mixin selector
      official E Ldnu;E:Ldmv;
      intermediary field_19753 Lnet/minecraft/class_4381;field_19753:Lnet/minecraft/class_4877;
      named serverData Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;serverData:Lnet/minecraft/client/realms/dto/RealmsServer;
    • titleLabel

      private RealmsLabel titleLabel
      Mappings:
      Namespace Name Mixin selector
      official F Ldnu;F:Lewf;
      intermediary field_19754 Lnet/minecraft/class_4381;field_19754:Lnet/minecraft/class_4903;
      named titleLabel Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;titleLabel:Lnet/minecraft/client/realms/RealmsLabel;
  • Constructor Details

    • RealmsBackupScreen

      public RealmsBackupScreen​(RealmsConfigureWorldScreen parent, RealmsServer serverData, int slotId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldnu;<init>(Ldnx;Ldmv;I)V
      intermediary <init> Lnet/minecraft/class_4381;<init>(Lnet/minecraft/class_4388;Lnet/minecraft/class_4877;I)V
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;<init>(Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;Lnet/minecraft/client/realms/dto/RealmsServer;I)V
  • Method Details

    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Ldve;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • generateChangeList

      private void generateChangeList()
      Mappings:
      Namespace Name Mixin selector
      official i Ldnu;i()V
      intermediary method_21154 Lnet/minecraft/class_4381;method_21154()V
      named generateChangeList Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;generateChangeList()V
    • addToChangeList

      private void addToChangeList​(Backup backup, String key)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnu;a(Ldml;Ljava/lang/String;)V
      intermediary method_21147 Lnet/minecraft/class_4381;method_21147(Lnet/minecraft/class_4867;Ljava/lang/String;)V
      named addToChangeList Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;addToChangeList(Lnet/minecraft/client/realms/dto/Backup;Ljava/lang/String;)V
    • updateButtonStates

      private void updateButtonStates()
      Mappings:
      Namespace Name Mixin selector
      official k Ldnu;k()V
      intermediary method_21160 Lnet/minecraft/class_4381;method_21160()V
      named updateButtonStates Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;updateButtonStates()V
    • shouldChangesButtonBeVisible

      private boolean shouldChangesButtonBeVisible()
      Mappings:
      Namespace Name Mixin selector
      official l Ldnu;l()Z
      intermediary method_21162 Lnet/minecraft/class_4381;method_21162()Z
      named shouldChangesButtonBeVisible Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;shouldChangesButtonBeVisible()Z
    • shouldRestoreButtonBeVisible

      private boolean shouldRestoreButtonBeVisible()
      Mappings:
      Namespace Name Mixin selector
      official m Ldnu;m()Z
      intermediary method_21164 Lnet/minecraft/class_4381;method_21164()Z
      named shouldRestoreButtonBeVisible Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;shouldRestoreButtonBeVisible()Z
    • keyPressed

      public boolean keyPressed​(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
      Mappings:
      Namespace Name Mixin selector
      official a Ldst;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • restoreClicked

      private void restoreClicked​(int selectedBackup)
      Mappings:
      Namespace Name Mixin selector
      official b Ldnu;b(I)V
      intermediary method_21155 Lnet/minecraft/class_4381;method_21155(I)V
      named restoreClicked Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;restoreClicked(I)V
    • downloadClicked

      private void downloadClicked()
      Mappings:
      Namespace Name Mixin selector
      official n Ldnu;n()V
      intermediary method_21166 Lnet/minecraft/class_4381;method_21166()V
      named downloadClicked Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;downloadClicked()V
    • downloadWorldData

      private void downloadWorldData()
      Mappings:
      Namespace Name Mixin selector
      official o Ldnu;o()V
      intermediary method_21168 Lnet/minecraft/class_4381;method_21168()V
      named downloadWorldData Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;downloadWorldData()V
    • restore

      private void restore()
      Mappings:
      Namespace Name Mixin selector
      official p Ldnu;p()V
      intermediary method_21170 Lnet/minecraft/class_4381;method_21170()V
      named restore Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;restore()V
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Ldsq;a(Ldlr;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip​(MatrixStack matrices, @Nullable Text text, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnu;a(Ldlr;Loi;II)V
      intermediary method_21153 Lnet/minecraft/class_4381;method_21153(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)V
      named renderMousehoverTooltip Lnet/minecraft/client/realms/gui/screen/RealmsBackupScreen;renderMousehoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V