Class RealmsConfigureWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsConfigureWorldScreen extends RealmsScreen
  • Field Details

    • LOGGER

      private static final org.slf4j.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
    • WORLD_LIST_TITLE

      private static final Component WORLD_LIST_TITLE
    • TITLE

      private static final Component TITLE
    • MINIGAME_PREFIX

      private static final Component MINIGAME_PREFIX
    • SERVER_EXPIRED_TOOLTIP

      private static final Component SERVER_EXPIRED_TOOLTIP
    • SERVER_EXPIRING_SOON_TOOLTIP

      private static final Component SERVER_EXPIRING_SOON_TOOLTIP
    • SERVER_EXPIRING_IN_DAY_TOOLTIP

      private static final Component SERVER_EXPIRING_IN_DAY_TOOLTIP
    • SERVER_OPEN_TOOLTIP

      private static final Component SERVER_OPEN_TOOLTIP
    • SERVER_CLOSED_TOOLTIP

      private static final Component SERVER_CLOSED_TOOLTIP
    • DEFAULT_BUTTON_WIDTH

      private static final int DEFAULT_BUTTON_WIDTH
      See Also:
    • DEFAULT_BUTTON_OFFSET

      private static final int DEFAULT_BUTTON_OFFSET
      See Also:
    • toolTip

      @Nullable private Component 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
    • slotButtonList

      private final List<RealmsWorldSlotButton> slotButtonList
  • Constructor Details

    • RealmsConfigureWorldScreen

      public RealmsConfigureWorldScreen(RealmsMainScreen p_88411_, long p_88412_)
  • Method Details

    • init

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

      private RealmsWorldSlotButton addSlotButton(int p_167386_)
    • leftButton

      private int leftButton(int p_88464_)
    • centerButton

      private int centerButton(int p_88466_, int p_88467_)
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • render

      public void render(PoseStack p_88429_, int p_88430_, int p_88431_, float p_88432_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • frame

      private int frame(int p_88488_)
    • keyPressed

      public boolean keyPressed(int p_88417_, int p_88418_, int p_88419_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • backButtonClicked

      private void backButtonClicked()
    • fetchServerData

      private void fetchServerData(long p_88427_)
    • disableButtons

      private void disableButtons()
    • joinRealm

      private void joinRealm(RealmsServer p_88439_)
    • switchToMinigame

      private void switchToMinigame()
    • switchToFullSlot

      private void switchToFullSlot(int p_88421_, RealmsServer p_88422_)
    • switchToEmptySlot

      private void switchToEmptySlot(int p_88469_, RealmsServer p_88470_)
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(PoseStack p_88434_, @Nullable Component p_88435_, int p_88436_, int p_88437_)
    • drawServerStatus

      private void drawServerStatus(PoseStack p_88490_, int p_88491_, int p_88492_, int p_88493_, int p_88494_)
    • drawExpired

      private void drawExpired(PoseStack p_88499_, int p_88500_, int p_88501_, int p_88502_, int p_88503_)
    • drawExpiring

      private void drawExpiring(PoseStack p_88474_, int p_88475_, int p_88476_, int p_88477_, int p_88478_, int p_88479_)
    • drawOpen

      private void drawOpen(PoseStack p_88508_, int p_88509_, int p_88510_, int p_88511_, int p_88512_)
    • drawClose

      private void drawClose(PoseStack p_88516_, int p_88517_, int p_88518_, int p_88519_, int p_88520_)
    • isMinigame

      private boolean isMinigame()
    • hideRegularButtons

      private void hideRegularButtons()
    • hide

      private void hide(Button p_88451_)
    • show

      private void show(Button p_88485_)
    • hideMinigameButtons

      private void hideMinigameButtons()
    • saveSlotSettings

      public void saveSlotSettings(RealmsWorldOptions p_88445_)
    • saveSettings

      public void saveSettings(String p_88455_, String p_88456_)
    • openTheWorld

      public void openTheWorld(boolean p_88460_, Screen p_88461_)
    • closeTheWorld

      public void closeTheWorld(Screen p_88453_)
    • stateChanged

      public void stateChanged()
    • templateSelectionCallback

      private void templateSelectionCallback(@Nullable WorldTemplate p_167395_)
    • getNewScreen

      public RealmsConfigureWorldScreen getNewScreen()