Class RealmsSlotOptionsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsSlotOptionsScreen extends RealmsScreen
  • Field Details

    • DEFAULT_DIFFICULTY

      private static final int DEFAULT_DIFFICULTY
      See Also:
    • DIFFICULTIES

      public static final List<Difficulty> DIFFICULTIES
    • DEFAULT_GAME_MODE

      private static final int DEFAULT_GAME_MODE
      See Also:
    • GAME_MODES

      public static final List<GameType> GAME_MODES
    • NAME_LABEL

      private static final Component NAME_LABEL
    • SPAWN_PROTECTION_TEXT

      static final Component SPAWN_PROTECTION_TEXT
    • nameEdit

      private EditBox nameEdit
    • parentScreen

      protected final RealmsConfigureWorldScreen parentScreen
    • column1X

      private int column1X
    • columnWidth

      private int columnWidth
    • options

      private final RealmsWorldOptions options
    • worldType

      private final RealmsServer.WorldType worldType
    • difficulty

      private Difficulty difficulty
    • gameMode

      private GameType gameMode
    • defaultSlotName

      private final String defaultSlotName
    • worldName

      private String worldName
    • pvp

      private boolean pvp
    • spawnNPCs

      private boolean spawnNPCs
    • spawnAnimals

      private boolean spawnAnimals
    • spawnMonsters

      private boolean spawnMonsters
    • spawnProtection

      int spawnProtection
    • commandBlocks

      private boolean commandBlocks
    • forceGameMode

      private boolean forceGameMode
    • spawnProtectionButton

  • Constructor Details

  • Method Details

    • onClose

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

      private static <T> T findByIndex(List<T> p_167525_, int p_167526_, int p_167527_)
    • findIndex

      private static <T> int findIndex(List<T> p_167529_, T p_167530_, int p_167531_)
    • init

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

      private CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component p_231324_, Consumer<Boolean> p_231325_)
    • getNarrationMessage

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

      public void render(GuiGraphics p_283210_, int p_283172_, int p_281531_, float p_283191_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • setWorldName

      private void setWorldName(String p_231314_)
    • saveSettings

      private void saveSettings()