Class RealmsBrokenWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsBrokenWorldScreen extends RealmsScreen
  • Field Details

    • SLOT_FRAME_SPRITE

      private static final Identifier SLOT_FRAME_SPRITE
    • 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
    • serverData

      private @Nullable RealmsServer serverData
    • serverId

      private final long serverId
    • message

      private final Component[] message
    • leftX

      private int leftX
    • slotsThatHasBeenDownloaded

      private final List<Integer> slotsThatHasBeenDownloaded
    • animTick

      private int animTick
  • Constructor Details

    • RealmsBrokenWorldScreen

      public RealmsBrokenWorldScreen(Screen lastScreen, long serverId, boolean isMinigame)
  • 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 graphics, int xm, int ym, float a)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      graphics - the GuiGraphics object used for rendering.
      xm - the x-coordinate of the mouse cursor.
      ym - the y-coordinate of the mouse cursor.
      a - the partial tick time.
    • getFramePositionX

      private int getFramePositionX(int i)
    • createErrorScreen

      public Screen createErrorScreen(RealmsServiceException exception)
    • fetchServerData

      private void fetchServerData(long realmId)
    • doSwitchOrReset

      public void doSwitchOrReset()
    • downloadWorld

      private void downloadWorld(int slotId)
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • isMinigame

      private boolean isMinigame()
    • drawSlotFrame

      private void drawSlotFrame(GuiGraphics graphics, int x, int y, int xm, int ym, boolean active, String text, int i, long imageId, @Nullable String image, boolean empty)