Class RealmsSlotOptionsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsSlotOptionsScreen extends RealmsScreen
  • Field Details

    • DEFAULT_DIFFICULTY

      private static final int DEFAULT_DIFFICULTY
      See Also:
      Constant Field Values
    • DIFFICULTIES

      public static final List<Difficulty> DIFFICULTIES
    • DEFAULT_GAME_MODE

      private static final int DEFAULT_GAME_MODE
      See Also:
      Constant Field Values
    • 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
    • parent

      protected final RealmsConfigureWorldScreen parent
    • column1X

      private int column1X
    • columnWidth

      private int columnWidth
    • options

      private final RealmsWorldOptions options
    • worldType

      private final RealmsServer.WorldType worldType
    • activeSlot

      private final int activeSlot
    • difficulty

      private Difficulty difficulty
    • gameMode

      private GameType gameMode
    • 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

    • removed

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

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

      public boolean keyPressed(int p_89891_, int p_89892_, int p_89893_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed 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
    • getNarrationMessage

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

      public void render(PoseStack p_89895_, int p_89896_, int p_89897_, float p_89898_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • getSlotName

      private String getSlotName()
    • saveSettings

      private void saveSettings()