Class RealmsSlotOptionsScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsSlotOptionsScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name official eljintermediary net/minecraft/class_4423named net/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate booleanprivate final Stringstatic final List<Difficulty>private Difficultyprivate static final Textprivate static final intprivate static final intprivate booleanprivate GameModeprivate TextFieldWidgetprivate final RealmsWorldOptionsprotected final RealmsConfigureWorldScreenprivate booleanprivate String(package private) static final Textprivate static final Textprivate booleanprivate booleanprivate boolean(package private) int(package private) RealmsSlotOptionsScreen.SettingsSliderprivate final RealmsServer.WorldTypeFields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
ADVENTURE_MAPS_IN_1_9_URL, field_33036, field_33037, field_33038, field_33039, field_33040, field_33041, field_33042, field_33043, field_33055, field_33056, field_33057, field_33060, field_33061, field_33062, field_33063, field_33064, field_39676, MAX_FILE_SIZE, RED, WHITEFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> TgetSpawnToggleButtonCallback(Text text, Consumer<Boolean> valueSetter) private static <T> intvoidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float delta) private voidprivate voidsetSlotName(String slotName) voidtick()Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
field_32125
private static final int field_32125- See Also:
- Mappings:
Namespace Name Mixin selector official FLelj;F:Iintermediary field_32125Lnet/minecraft/class_4423;field_32125:Inamed field_32125Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32125:I
-
DIFFICULTIES
- Mappings:
Namespace Name Mixin selector official aLelj;a:Ljava/util/List;intermediary field_22723Lnet/minecraft/class_4423;field_22723:Ljava/util/List;named DIFFICULTIESLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;DIFFICULTIES:Ljava/util/List;
-
field_32126
private static final int field_32126- See Also:
- Mappings:
Namespace Name Mixin selector official GLelj;G:Iintermediary field_32126Lnet/minecraft/class_4423;field_32126:Inamed field_32126Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32126:I
-
GAME_MODES
- Mappings:
Namespace Name Mixin selector official bLelj;b:Ljava/util/List;intermediary field_22724Lnet/minecraft/class_4423;field_22724:Ljava/util/List;named GAME_MODESLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;GAME_MODES:Ljava/util/List;
-
EDIT_SLOT_NAME
- Mappings:
Namespace Name Mixin selector official HLelj;H:Lsw;intermediary field_26516Lnet/minecraft/class_4423;field_26516:Lnet/minecraft/class_2561;named EDIT_SLOT_NAMELnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;EDIT_SLOT_NAME:Lnet/minecraft/text/Text;
-
SPAWN_PROTECTION
- Mappings:
Namespace Name Mixin selector official ILelj;I:Lsw;intermediary field_27942Lnet/minecraft/class_4423;field_27942:Lnet/minecraft/class_2561;named SPAWN_PROTECTIONLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_PROTECTION:Lnet/minecraft/text/Text;
-
SPAWN_TOGGLE_TITLE
- Mappings:
Namespace Name Mixin selector official JLelj;J:Lsw;intermediary field_39186Lnet/minecraft/class_4423;field_39186:Lnet/minecraft/class_2561;named SPAWN_TOGGLE_TITLELnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_TOGGLE_TITLE:Lnet/minecraft/text/Text;
-
nameEdit
- Mappings:
Namespace Name Mixin selector official KLelj;K:Lepj;intermediary field_20113Lnet/minecraft/class_4423;field_20113:Lnet/minecraft/class_342;named nameEditLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;nameEdit:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
parent
- Mappings:
Namespace Name Mixin selector official cLelj;c:Leks;intermediary field_20109Lnet/minecraft/class_4423;field_20109:Lnet/minecraft/class_4388;named parentLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;
-
column1_x
private int column1_x- Mappings:
Namespace Name Mixin selector official LLelj;L:Iintermediary field_20114Lnet/minecraft/class_4423;field_20114:Inamed column1_xLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column1_x:I
-
column2_x
private int column2_x- Mappings:
Namespace Name Mixin selector official MLelj;M:Iintermediary field_20116Lnet/minecraft/class_4423;field_20116:Inamed column2_xLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column2_x:I
-
options
- Mappings:
Namespace Name Mixin selector official NLelj;N:Lejp;intermediary field_20117Lnet/minecraft/class_4423;field_20117:Lnet/minecraft/class_4883;named optionsLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;options:Lnet/minecraft/client/realms/dto/RealmsWorldOptions;
-
worldType
- Mappings:
Namespace Name Mixin selector official OLelj;O:Leji$c;intermediary field_20118Lnet/minecraft/class_4423;field_20118:Lnet/minecraft/class_4877$class_4321;named worldTypeLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;worldType:Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;
-
difficulty
- Mappings:
Namespace Name Mixin selector official PLelj;P:Lbdt;intermediary field_27943Lnet/minecraft/class_4423;field_27943:Lnet/minecraft/class_1267;named difficultyLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;difficulty:Lnet/minecraft/world/Difficulty;
-
gameMode
- Mappings:
Namespace Name Mixin selector official QLelj;Q:Lcmh;intermediary field_20121Lnet/minecraft/class_4423;field_20121:Lnet/minecraft/class_1934;named gameModeLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;gameMode:Lnet/minecraft/world/GameMode;
-
defaultSlotName
- Mappings:
Namespace Name Mixin selector official RLelj;R:Ljava/lang/String;intermediary field_39187Lnet/minecraft/class_4423;field_39187:Ljava/lang/String;named defaultSlotNameLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;defaultSlotName:Ljava/lang/String;
-
slotName
- Mappings:
Namespace Name Mixin selector official SLelj;S:Ljava/lang/String;intermediary field_39188Lnet/minecraft/class_4423;field_39188:Ljava/lang/String;named slotNameLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;slotName:Ljava/lang/String;
-
pvp
private boolean pvp- Mappings:
Namespace Name Mixin selector official TLelj;T:Zintermediary field_20122Lnet/minecraft/class_4423;field_20122:Znamed pvpLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;pvp:Z
-
spawnNpcs
private boolean spawnNpcs- Mappings:
Namespace Name Mixin selector official ULelj;U:Zintermediary field_20123Lnet/minecraft/class_4423;field_20123:Znamed spawnNpcsLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnNpcs:Z
-
spawnAnimals
private boolean spawnAnimals- Mappings:
Namespace Name Mixin selector official VLelj;V:Zintermediary field_20124Lnet/minecraft/class_4423;field_20124:Znamed spawnAnimalsLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnAnimals:Z
-
spawnMonsters
private boolean spawnMonsters- Mappings:
Namespace Name Mixin selector official WLelj;W:Zintermediary field_20125Lnet/minecraft/class_4423;field_20125:Znamed spawnMonstersLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnMonsters:Z
-
spawnProtection
int spawnProtection- Mappings:
Namespace Name Mixin selector official XLelj;X:Iintermediary field_20120Lnet/minecraft/class_4423;field_20120:Inamed spawnProtectionLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtection:I
-
commandBlocks
private boolean commandBlocks- Mappings:
Namespace Name Mixin selector official YLelj;Y:Zintermediary field_20127Lnet/minecraft/class_4423;field_20127:Znamed commandBlocksLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;commandBlocks:Z
-
forceGameMode
private boolean forceGameMode- Mappings:
Namespace Name Mixin selector official ZLelj;Z:Zintermediary field_20128Lnet/minecraft/class_4423;field_20128:Znamed forceGameModeLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;forceGameMode:Z
-
spawnProtectionButton
RealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton- Mappings:
Namespace Name Mixin selector official aaLelj;aa:Lelj$a;intermediary field_20133Lnet/minecraft/class_4423;field_20133:Lnet/minecraft/class_4423$class_4424;named spawnProtectionButtonLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtectionButton:Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen$SettingsSlider;
-
-
Constructor Details
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot) - Mappings:
Namespace Name Mixin selector official <init>Lelj;<init>(Leks;Lejp;Leji$c;I)Vintermediary <init>Lnet/minecraft/class_4423;<init>(Lnet/minecraft/class_4388;Lnet/minecraft/class_4883;Lnet/minecraft/class_4877$class_4321;I)Vnamed <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
-
-
Method Details
-
tick
public void tick() -
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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLeqk;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
get
- Mappings:
Namespace Name Mixin selector official aLelj;a(Ljava/util/List;II)Ljava/lang/Object;intermediary method_32498Lnet/minecraft/class_4423;method_32498(Ljava/util/List;II)Ljava/lang/Object;named getLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;get(Ljava/util/List;II)Ljava/lang/Object;
-
indexOf
- Mappings:
Namespace Name Mixin selector official aLelj;a(Ljava/util/List;Ljava/lang/Object;I)Iintermediary method_32499Lnet/minecraft/class_4423;method_32499(Ljava/util/List;Ljava/lang/Object;I)Inamed indexOfLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;indexOf(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(net.minecraft.client.gui.Element)to set the element that is initially focused. -
getSpawnToggleButtonCallback
private CyclingButtonWidget.UpdateCallback<Boolean> getSpawnToggleButtonCallback(Text text, Consumer<Boolean> valueSetter) - Mappings:
Namespace Name Mixin selector official aLelj;a(Lsw;Ljava/util/function/Consumer;)Leph$b;intermediary method_43756Lnet/minecraft/class_4423;method_43756(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;)Lnet/minecraft/class_5676$class_5678;named getSpawnToggleButtonCallbackLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;getSpawnToggleButtonCallback(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/CyclingButtonWidget$UpdateCallback;
-
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector official au_Leug;au_()Lsw;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLepy;a(Leop;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
setSlotName
- Mappings:
Namespace Name Mixin selector official aLelj;a(Ljava/lang/String;)Vintermediary method_43757Lnet/minecraft/class_4423;method_43757(Ljava/lang/String;)Vnamed setSlotNameLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;setSlotName(Ljava/lang/String;)V
-
saveSettings
private void saveSettings()- Mappings:
Namespace Name Mixin selector official BLelj;B()Vintermediary method_21486Lnet/minecraft/class_4423;method_21486()Vnamed saveSettingsLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;saveSettings()V
-