Class RealmsConfigureWorldScreen

    • Field Detail

      • LOGGER

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

        private static final ResourceLocation EXPIRED_ICON_LOCATION
      • EXPIRES_SOON_ICON_LOCATION

        private static final ResourceLocation EXPIRES_SOON_ICON_LOCATION
      • 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
      • 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 Detail

      • RealmsConfigureWorldScreen

        public RealmsConfigureWorldScreen​(RealmsMainScreen p_i51774_1_,
                                          long p_i51774_2_)
    • Method Detail

      • 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_)
      • frame

        private int frame​(int p_224368_1_)
      • removed

        public void removed()
        Overrides:
        removed 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()
      • saveSettings

        public void saveSettings​(java.lang.String p_224410_1_,
                                 java.lang.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()