Class RealmsBrokenWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsBrokenWorldScreen extends RealmsScreen
  • Field Details

    • LOGGER

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

      private static final int DEFAULT_BUTTON_WIDTH
      See Also:
      Constant Field Values
    • lastScreen

      private final Screen lastScreen
    • mainScreen

      private final RealmsMainScreen mainScreen
    • serverData

      private RealmsServer serverData
    • serverId

      private final long serverId
    • message

      private final Component[] message
    • leftX

      private int leftX
    • rightX

      private int rightX
    • slotsThatHasBeenDownloaded

      private final List<Integer> slotsThatHasBeenDownloaded
    • animTick

      private int animTick
  • Constructor Details

    • RealmsBrokenWorldScreen

      public RealmsBrokenWorldScreen(Screen p_88296_, RealmsMainScreen p_88297_, long p_88298_, boolean p_88299_)
  • Method Details

    • init

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

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • addButtons

      private void addButtons()
    • tick

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

      public void render(PoseStack p_88316_, int p_88317_, int p_88318_, float p_88319_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • getFramePositionX

      private int getFramePositionX(int p_88302_)
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • keyPressed

      public boolean keyPressed(int p_88304_, int p_88305_, int p_88306_)
      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_88314_)
    • doSwitchOrReset

      public void doSwitchOrReset()
    • downloadWorld

      private void downloadWorld(int p_88336_)
    • isMinigame

      private boolean isMinigame()
    • drawSlotFrame

      private void drawSlotFrame(PoseStack p_88321_, int p_88322_, int p_88323_, int p_88324_, int p_88325_, boolean p_88326_, String p_88327_, int p_88328_, long p_88329_, @Nullable String p_88330_, boolean p_88331_)