Class RealmsBackupScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class RealmsBackupScreen extends RealmsScreen
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • PLUS_ICON_LOCATION

      private static final ResourceLocation PLUS_ICON_LOCATION
    • RESTORE_ICON_LOCATION

      private static final ResourceLocation RESTORE_ICON_LOCATION
    • RESTORE_TOOLTIP

      private static final ITextComponent RESTORE_TOOLTIP
    • HAS_CHANGES_TOOLTIP

      private static final ITextComponent HAS_CHANGES_TOOLTIP
    • TITLE

      private static final ITextComponent TITLE
    • NO_BACKUPS_LABEL

      private static final ITextComponent NO_BACKUPS_LABEL
    • lastScrollPosition

      private static int lastScrollPosition
    • lastScreen

      private final RealmsConfigureWorldScreen lastScreen
    • backups

      private List<Backup> backups
    • toolTip

      @Nullable private ITextComponent toolTip
    • backupObjectSelectionList

      private RealmsBackupScreen.BackupObjectSelectionList backupObjectSelectionList
    • selectedBackup

      private int selectedBackup
    • slotId

      private final int slotId
    • downloadButton

      private Button downloadButton
    • restoreButton

      private Button restoreButton
    • changesButton

      private Button changesButton
    • noBackups

      private Boolean noBackups
    • serverData

      private final RealmsServer serverData
    • titleLabel

      private RealmsLabel titleLabel
  • Constructor Details

  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • generateChangeList

      private void generateChangeList()
    • addToChangeList

      private void addToChangeList(Backup p_224103_1_, String p_224103_2_)
    • updateButtonStates

      private void updateButtonStates()
    • shouldChangesButtonBeVisible

      private boolean shouldChangesButtonBeVisible()
    • shouldRestoreButtonBeVisible

      private boolean shouldRestoreButtonBeVisible()
    • keyPressed

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
      Overrides:
      keyPressed in class Screen
    • restoreClicked

      private void restoreClicked(int p_224104_1_)
    • downloadClicked

      private void downloadClicked()
    • downloadWorldData

      private void downloadWorldData()
    • restore

      private void restore()
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(MatrixStack p_237744_1_, @Nullable ITextComponent p_237744_2_, int p_237744_3_, int p_237744_4_)