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> pValues, int pIndex, int pDefaultIndex)
    • findIndex

      private static <T> int findIndex(List<T> pValues, T pItem, int pDefaultIndex)
    • init

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

      private CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component pText, Consumer<Boolean> pCallback)
    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • render

      public void render(GuiGraphics p_419989_, int p_419940_, int p_419891_, float p_419545_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_419989_ - the GuiGraphics object used for rendering.
      p_419940_ - the x-coordinate of the mouse cursor.
      p_419891_ - the y-coordinate of the mouse cursor.
      p_419545_ - the partial tick time.
    • setWorldName

      private void setWorldName(String pWorldName)
    • saveSettings

      private void saveSettings()