Class RealmsConfigureWorldScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class RealmsConfigureWorldScreen extends NotifableRealmsScreen
  • Field Details

    • LOGGER

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

      private static final ResourceLocation ON_ICON_LOCATION
    • OFF_ICON_LOCATION

      private static final ResourceLocation OFF_ICON_LOCATION
    • EXPIRED_ICON_LOCATION

      private static final ResourceLocation EXPIRED_ICON_LOCATION
    • EXPIRES_SOON_ICON_LOCATION

      private static final ResourceLocation EXPIRES_SOON_ICON_LOCATION
    • TITLE

      private static final ITextComponent TITLE
    • WORLD_TITLE

      private static final ITextComponent WORLD_TITLE
    • MINIGAME_PREFIX

      private static final ITextComponent MINIGAME_PREFIX
    • SERVER_EXPIRED_TOOLTIP

      private static final ITextComponent SERVER_EXPIRED_TOOLTIP
    • SERVER_EXPIRING_SOON_TOOLTIP

      private static final ITextComponent SERVER_EXPIRING_SOON_TOOLTIP
    • SERVER_EXPIRING_IN_DAY_TOOLTIP

      private static final ITextComponent SERVER_EXPIRING_IN_DAY_TOOLTIP
    • SERVER_OPEN_TOOLTIP

      private static final ITextComponent SERVER_OPEN_TOOLTIP
    • SERVER_CLOSED_TOOLTIP

      private static final ITextComponent SERVER_CLOSED_TOOLTIP
    • toolTip

      @Nullable private ITextComponent toolTip
    • lastScreen

      private final RealmsMainScreen lastScreen
    • serverData

      @Nullable private RealmsServer serverData
    • serverId

      private final long serverId
    • leftX

      private int leftX
    • rightX

      private int rightX
    • playersButton

      private Button playersButton
    • settingsButton

      private Button settingsButton
    • subscriptionButton

      private Button subscriptionButton
    • optionsButton

      private Button optionsButton
    • backupButton

      private Button backupButton
    • resetWorldButton

      private Button resetWorldButton
    • switchMinigameButton

      private Button switchMinigameButton
    • stateChanged

      private boolean stateChanged
    • animTick

      private int animTick
    • clicks

      private int clicks
  • Constructor Details

    • RealmsConfigureWorldScreen

      public RealmsConfigureWorldScreen(RealmsMainScreen p_i51774_1_, long p_i51774_2_)
  • Method Details

    • init

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

      private void addSlotButton(int p_224402_1_)
    • leftButton

      private int leftButton(int p_224411_1_)
    • centerButton

      private int centerButton(int p_224374_1_, int p_224374_2_)
    • tick

      public void tick()
      Specified by:
      tick in interface IScreen
      Overrides:
      tick in class RealmsScreen
    • 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
    • frame

      private int frame(int p_224368_1_)
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • 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
    • backButtonClicked

      private void backButtonClicked()
    • fetchServerData

      private void fetchServerData(long p_224387_1_)
    • disableButtons

      private void disableButtons()
    • joinRealm

      private void joinRealm(RealmsServer p_224385_1_)
    • switchToMinigame

      private void switchToMinigame()
    • switchToFullSlot

      private void switchToFullSlot(int p_224403_1_, RealmsServer p_224403_2_)
    • switchToEmptySlot

      private void switchToEmptySlot(int p_224388_1_, RealmsServer p_224388_2_)
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(MatrixStack p_237796_1_, @Nullable ITextComponent p_237796_2_, int p_237796_3_, int p_237796_4_)
    • drawServerStatus

      private void drawServerStatus(MatrixStack p_237807_1_, int p_237807_2_, int p_237807_3_, int p_237807_4_, int p_237807_5_)
    • drawExpired

      private void drawExpired(MatrixStack p_237809_1_, int p_237809_2_, int p_237809_3_, int p_237809_4_, int p_237809_5_)
    • drawExpiring

      private void drawExpiring(MatrixStack p_237804_1_, int p_237804_2_, int p_237804_3_, int p_237804_4_, int p_237804_5_, int p_237804_6_)
    • drawOpen

      private void drawOpen(MatrixStack p_237811_1_, int p_237811_2_, int p_237811_3_, int p_237811_4_, int p_237811_5_)
    • drawClose

      private void drawClose(MatrixStack p_237813_1_, int p_237813_2_, int p_237813_3_, int p_237813_4_, int p_237813_5_)
    • isMinigame

      private boolean isMinigame()
    • hideRegularButtons

      private void hideRegularButtons()
    • hide

      private void hide(Button p_237799_1_)
    • show

      private void show(Button p_237806_1_)
    • hideMinigameButtons

      private void hideMinigameButtons()
    • saveSlotSettings

      public void saveSlotSettings(RealmsWorldOptions p_224386_1_)
    • saveSettings

      public void saveSettings(String p_224410_1_, String p_224410_2_)
    • openTheWorld

      public void openTheWorld(boolean p_237802_1_, Screen p_237802_2_)
    • closeTheWorld

      public void closeTheWorld(Screen p_237800_1_)
    • stateChanged

      public void stateChanged()
    • callback

      protected void callback(@Nullable WorldTemplate p_223627_1_)
      Specified by:
      callback in class NotifableRealmsScreen
    • getNewScreen

      public RealmsConfigureWorldScreen getNewScreen()