Class RealmsBrokenWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsBrokenWorldScreen extends RealmsScreen
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DEFAULT_BUTTON_WIDTH

      private static final int DEFAULT_BUTTON_WIDTH
      See Also:
    • lastScreen

      private final Screen lastScreen
    • mainScreen

      private final RealmsMainScreen mainScreen
    • serverData

      @Nullable 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(GuiGraphics p_282934_, int p_88317_, int p_88318_, float p_88319_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • getFramePositionX

      private int getFramePositionX(int p_88302_)
    • 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(GuiGraphics p_281929_, int p_283393_, int p_281553_, int p_283523_, int p_282823_, boolean p_283032_, String p_283498_, int p_283330_, long p_283588_, @Nullable String p_282484_, boolean p_282283_)