Class RealmsBrokenWorldScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class RealmsBrokenWorldScreen
extends RealmsScreen
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • parent

      private final Screen parent
    • mainScreen

      private final RealmsMainScreen mainScreen
    • field_20492

      private RealmsServer field_20492
    • serverId

      private final long serverId
    • field_24204

      private final Text field_24204
    • message

      private final Text[] message
    • left_x

      private int left_x
    • right_x

      private int right_x
    • slotsThatHasBeenDownloaded

      private final List<Integer> slotsThatHasBeenDownloaded
    • animTick

      private int animTick
  • Constructor Details

    • RealmsBrokenWorldScreen

      public RealmsBrokenWorldScreen​(Screen parent, RealmsMainScreen mainScreen, long serverId, boolean bool)
  • Method Details

    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • addButtons

      private void addButtons()
    • tick

      public void tick()
      Specified by:
      tick in interface TickableElement
      Overrides:
      tick in class RealmsScreen
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
    • getFramePositionX

      private int getFramePositionX​(int i)
    • removed

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

      public boolean keyPressed​(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see {@linkplain https://www.glfw.org/docs/3.3/group__mods.html GLFW Modifier key flags})
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
    • backButtonClicked

      private void backButtonClicked()
    • fetchServerData

      private void fetchServerData​(long worldId)
    • method_25123

      public void method_25123()
    • downloadWorld

      private void downloadWorld​(int slotId)
    • isMinigame

      private boolean isMinigame()
    • drawSlotFrame

      private void drawSlotFrame​(MatrixStack matrixStack, int y, int xm, int ym, int int2, boolean bool, String string, int int3, long long2, String string2, boolean bool2)