Class RealmsSlotOptionsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsSlotOptionsScreen extends RealmsScreen
  • Field Details

  • Constructor Details

  • Method Details

    • onClose

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

      private static <T> T findByIndex(List<T> values, int index, int defaultIndex)
    • findIndex

      private static <T> int findIndex(List<T> values, T value, int defaultIndex)
    • init

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

      private CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component message, Consumer<Boolean> setter)
    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage 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.
    • setWorldName

      private void setWorldName(String value)
    • saveSettings

      private void saveSettings()