Class RealmsSlotOptionsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class RealmsSlotOptionsScreen extends RealmsScreen
Mappings:
Namespace Name
named net/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen
intermediary net/minecraft/class_4423
official fdi
  • Field Details

    • field_32125

      private static final int field_32125
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32125 Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32125:I
      intermediary field_32125 Lnet/minecraft/class_4423;field_32125:I
      official B Lfdi;B:I
    • DIFFICULTIES

      public static final List<Difficulty> DIFFICULTIES
      Mappings:
      Namespace Name Mixin selector
      named DIFFICULTIES Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;DIFFICULTIES:Ljava/util/List;
      intermediary field_22723 Lnet/minecraft/class_4423;field_22723:Ljava/util/List;
      official a Lfdi;a:Ljava/util/List;
    • field_32126

      private static final int field_32126
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32126 Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32126:I
      intermediary field_32126 Lnet/minecraft/class_4423;field_32126:I
      official C Lfdi;C:I
    • GAME_MODES

      public static final List<GameMode> GAME_MODES
      Mappings:
      Namespace Name Mixin selector
      named GAME_MODES Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;GAME_MODES:Ljava/util/List;
      intermediary field_22724 Lnet/minecraft/class_4423;field_22724:Ljava/util/List;
      official b Lfdi;b:Ljava/util/List;
    • EDIT_SLOT_NAME

      private static final Text EDIT_SLOT_NAME
      Mappings:
      Namespace Name Mixin selector
      named EDIT_SLOT_NAME Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;EDIT_SLOT_NAME:Lnet/minecraft/text/Text;
      intermediary field_26516 Lnet/minecraft/class_4423;field_26516:Lnet/minecraft/class_2561;
      official D Lfdi;D:Lxp;
    • SPAWN_PROTECTION

      static final Text SPAWN_PROTECTION
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_PROTECTION Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_PROTECTION:Lnet/minecraft/text/Text;
      intermediary field_27942 Lnet/minecraft/class_4423;field_27942:Lnet/minecraft/class_2561;
      official E Lfdi;E:Lxp;
    • SPAWN_TOGGLE_TITLE

      private static final Text SPAWN_TOGGLE_TITLE
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_TOGGLE_TITLE Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_TOGGLE_TITLE:Lnet/minecraft/text/Text;
      intermediary field_39186 Lnet/minecraft/class_4423;field_39186:Lnet/minecraft/class_2561;
      official F Lfdi;F:Lxp;
    • nameEdit

      private TextFieldWidget nameEdit
      Mappings:
      Namespace Name Mixin selector
      named nameEdit Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;nameEdit:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_20113 Lnet/minecraft/class_4423;field_20113:Lnet/minecraft/class_342;
      official G Lfdi;G:Lfho;
    • parent

      protected final RealmsConfigureWorldScreen parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;
      intermediary field_20109 Lnet/minecraft/class_4423;field_20109:Lnet/minecraft/class_4388;
      official c Lfdi;c:Lfcp;
    • column1_x

      private int column1_x
      Mappings:
      Namespace Name Mixin selector
      named column1_x Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column1_x:I
      intermediary field_20114 Lnet/minecraft/class_4423;field_20114:I
      official H Lfdi;H:I
    • column2_x

      private int column2_x
      Mappings:
      Namespace Name Mixin selector
      named column2_x Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column2_x:I
      intermediary field_20116 Lnet/minecraft/class_4423;field_20116:I
      official I Lfdi;I:I
    • options

      private final RealmsWorldOptions options
      Mappings:
      Namespace Name Mixin selector
      named options Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;options:Lnet/minecraft/client/realms/dto/RealmsWorldOptions;
      intermediary field_20117 Lnet/minecraft/class_4423;field_20117:Lnet/minecraft/class_4883;
      official J Lfdi;J:Lfbn;
    • worldType

      private final RealmsServer.WorldType worldType
      Mappings:
      Namespace Name Mixin selector
      named worldType Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;worldType:Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;
      intermediary field_20118 Lnet/minecraft/class_4423;field_20118:Lnet/minecraft/class_4877$class_4321;
      official K Lfdi;K:Lfbg$d;
    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      named difficulty Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;difficulty:Lnet/minecraft/world/Difficulty;
      intermediary field_27943 Lnet/minecraft/class_4423;field_27943:Lnet/minecraft/class_1267;
      official L Lfdi;L:Lbqs;
    • gameMode

      private GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;gameMode:Lnet/minecraft/world/GameMode;
      intermediary field_20121 Lnet/minecraft/class_4423;field_20121:Lnet/minecraft/class_1934;
      official M Lfdi;M:Ldbw;
    • defaultSlotName

      private final String defaultSlotName
      Mappings:
      Namespace Name Mixin selector
      named defaultSlotName Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;defaultSlotName:Ljava/lang/String;
      intermediary field_39187 Lnet/minecraft/class_4423;field_39187:Ljava/lang/String;
      official N Lfdi;N:Ljava/lang/String;
    • slotName

      private String slotName
      Mappings:
      Namespace Name Mixin selector
      named slotName Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;slotName:Ljava/lang/String;
      intermediary field_39188 Lnet/minecraft/class_4423;field_39188:Ljava/lang/String;
      official O Lfdi;O:Ljava/lang/String;
    • pvp

      private boolean pvp
      Mappings:
      Namespace Name Mixin selector
      named pvp Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;pvp:Z
      intermediary field_20122 Lnet/minecraft/class_4423;field_20122:Z
      official P Lfdi;P:Z
    • spawnNpcs

      private boolean spawnNpcs
      Mappings:
      Namespace Name Mixin selector
      named spawnNpcs Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnNpcs:Z
      intermediary field_20123 Lnet/minecraft/class_4423;field_20123:Z
      official Q Lfdi;Q:Z
    • spawnAnimals

      private boolean spawnAnimals
      Mappings:
      Namespace Name Mixin selector
      named spawnAnimals Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnAnimals:Z
      intermediary field_20124 Lnet/minecraft/class_4423;field_20124:Z
      official R Lfdi;R:Z
    • spawnMonsters

      private boolean spawnMonsters
      Mappings:
      Namespace Name Mixin selector
      named spawnMonsters Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnMonsters:Z
      intermediary field_20125 Lnet/minecraft/class_4423;field_20125:Z
      official S Lfdi;S:Z
    • spawnProtection

      int spawnProtection
      Mappings:
      Namespace Name Mixin selector
      named spawnProtection Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtection:I
      intermediary field_20120 Lnet/minecraft/class_4423;field_20120:I
      official T Lfdi;T:I
    • commandBlocks

      private boolean commandBlocks
      Mappings:
      Namespace Name Mixin selector
      named commandBlocks Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;commandBlocks:Z
      intermediary field_20127 Lnet/minecraft/class_4423;field_20127:Z
      official U Lfdi;U:Z
    • forceGameMode

      private boolean forceGameMode
      Mappings:
      Namespace Name Mixin selector
      named forceGameMode Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;forceGameMode:Z
      intermediary field_20128 Lnet/minecraft/class_4423;field_20128:Z
      official V Lfdi;V:Z
    • spawnProtectionButton

      Mappings:
      Namespace Name Mixin selector
      named spawnProtectionButton Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtectionButton:Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen$SettingsSlider;
      intermediary field_20133 Lnet/minecraft/class_4423;field_20133:Lnet/minecraft/class_4423$class_4424;
      official W Lfdi;W:Lfdi$a;
  • Constructor Details

    • RealmsSlotOptionsScreen

      public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;<init>(Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;Lnet/minecraft/client/realms/dto/RealmsWorldOptions;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;I)V
      intermediary <init> Lnet/minecraft/class_4423;<init>(Lnet/minecraft/class_4388;Lnet/minecraft/class_4883;Lnet/minecraft/class_4877$class_4321;I)V
      official <init> Lfdi;<init>(Lfcp;Lfbn;Lfbg$d;I)V
  • Method Details

    • 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:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfjb;a(III)Z
    • get

      private static <T> T get(List<T> list, int index, int fallbackIndex)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;get(Ljava/util/List;II)Ljava/lang/Object;
      intermediary method_32498 Lnet/minecraft/class_4423;method_32498(Ljava/util/List;II)Ljava/lang/Object;
      official a Lfdi;a(Ljava/util/List;II)Ljava/lang/Object;
    • indexOf

      private static <T> int indexOf(List<T> list, T value, int fallbackIndex)
      Mappings:
      Namespace Name Mixin selector
      named indexOf Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;indexOf(Ljava/util/List;Ljava/lang/Object;I)I
      intermediary method_32499 Lnet/minecraft/class_4423;method_32499(Ljava/util/List;Ljava/lang/Object;I)I
      official a Lfdi;a(Ljava/util/List;Ljava/lang/Object;I)I
    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus() to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      official aM_ Lfne;aM_()V
    • getSpawnToggleButtonCallback

      private CyclingButtonWidget.UpdateCallback<Boolean> getSpawnToggleButtonCallback(Text text, Consumer<Boolean> valueSetter)
      Mappings:
      Namespace Name Mixin selector
      named getSpawnToggleButtonCallback Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;getSpawnToggleButtonCallback(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/CyclingButtonWidget$UpdateCallback;
      intermediary method_43756 Lnet/minecraft/class_4423;method_43756(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;)Lnet/minecraft/class_5676$class_5678;
      official a Lfdi;a(Lxp;Ljava/util/function/Consumer;)Lfhm$b;
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      official i Lfne;i()Lxp;
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfii;a(Lfgs;IIF)V
    • setSlotName

      private void setSlotName(String slotName)
      Mappings:
      Namespace Name Mixin selector
      named setSlotName Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;setSlotName(Ljava/lang/String;)V
      intermediary method_43757 Lnet/minecraft/class_4423;method_43757(Ljava/lang/String;)V
      official a Lfdi;a(Ljava/lang/String;)V
    • saveSettings

      private void saveSettings()
      Mappings:
      Namespace Name Mixin selector
      named saveSettings Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;saveSettings()V
      intermediary method_21486 Lnet/minecraft/class_4423;method_21486()V
      official E Lfdi;E()V