Class RealmsResetWorldScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

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

    • LOGGER

      private static final Logger LOGGER
    • SLOT_FRAME_TEXTURE

      private static final Identifier SLOT_FRAME_TEXTURE
    • UPLOAD_TEXTURE

      private static final Identifier UPLOAD_TEXTURE
    • ADVENTURE_TEXTURE

      private static final Identifier ADVENTURE_TEXTURE
    • SURVIVAL_SPAWN_TEXTURE

      private static final Identifier SURVIVAL_SPAWN_TEXTURE
    • NEW_WORLD_TEXTURE

      private static final Identifier NEW_WORLD_TEXTURE
    • EXPERIENCE_TEXTURE

      private static final Identifier EXPERIENCE_TEXTURE
    • INSPIRATION_TEXTURE

      private static final Identifier INSPIRATION_TEXTURE
    • parent

      private final Screen parent
    • serverData

      private final RealmsServer serverData
    • titleLabel

      private RealmsLabel titleLabel
    • subtitleLabel

      private RealmsLabel subtitleLabel
    • title

      private Text title
    • subtitle

      private Text subtitle
    • buttonTitle

      private Text buttonTitle
    • subtitleColor

      private int subtitleColor
    • field_20495

      private WorldTemplatePaginatedList field_20495
    • field_20496

      private WorldTemplatePaginatedList field_20496
    • field_20497

      private WorldTemplatePaginatedList field_20497
    • field_20498

      private WorldTemplatePaginatedList field_20498
    • slot

      public int slot
    • field_20501

      private Text field_20501
    • field_22711

      private final Runnable field_22711
    • field_22712

      private final Runnable field_22712
  • Constructor Details

  • Method Details

    • setSlot

      public void setSlot​(int slot)
    • setResetTitle

      public void setResetTitle​(Text text)
    • 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
    • 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 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)
    • frame

      private int frame​(int i)
    • render

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

      private void drawFrame​(MatrixStack matrixStack, int x, int y, Text text, Identifier identifier, boolean bool, boolean bool2)
    • method_32490

      private void method_32490​(LongRunningTask longRunningTask)
    • switchSlot

      public void switchSlot​(Runnable callback)
    • method_32488

      private void method_32488​(@Nullable WorldTemplate worldTemplate)
    • method_32489

      private void method_32489​(@Nullable ResetWorldInfo resetWorldInfo)
    • method_32493

      private void method_32493​(Runnable runnable)