Class RealmsSlotOptionsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsSlotOptionsScreen extends RealmsScreen
- Mappings:
Namespace Name official doointermediary net/minecraft/class_4423named net/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classRealmsSlotOptionsScreen.SettingsSlider -
Field Summary
Fields Modifier and Type Field Description private intactiveSlotprivate intcolumn1_xprivate intcolumn2_xprivate booleancommandBlocksstatic List<Difficulty>DIFFICULTIESprivate intdifficultyIndexprivate static TextEDIT_SLOT_NAMEprivate Difficultyfield_27943private booleanforceGameModestatic List<GameMode>GAME_MODESprivate GameModegameModeIndexprivate TextFieldWidgetnameEditprivate RealmsWorldOptionsoptionsprotected RealmsConfigureWorldScreenparentprivate booleanpvpprivate static TextSPAWN_PROTECTIONprivate booleanspawnAnimalsprivate booleanspawnMonstersprivate booleanspawnNPCsprivate RealmsSlotOptionsScreen.SettingsSliderspawnProtectionButtonprivate RealmsLabeltitleLabelprivate RealmsLabeltoastMessageprivate RealmsServer.WorldTypeworldTypeFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot) -
Method Summary
Modifier and Type Method Description private StringgetSlotName()voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private static <T> Tmethod_32498(List<T> list, int int2, int int3)private static <T> intmethod_32499(List<T> list, T t, int int2)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidsaveSettings()voidtick()Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods 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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
DIFFICULTIES
- Mappings:
Namespace Name Mixin selector official aLdoo;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;
-
GAME_MODES
- Mappings:
Namespace Name Mixin selector official bLdoo;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 pLdoo;p:Loi;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 qLdoo;q:Loi;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;
-
nameEdit
- Mappings:
Namespace Name Mixin selector official rLdoo;r:Ldsc;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 cLdoo;c:Ldnx;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 sLdoo;s: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 tLdoo;t: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 uLdoo;u:Ldnb;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 vLdoo;v:Ldmv$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;
-
activeSlot
private final int activeSlot- Mappings:
Namespace Name Mixin selector official wLdoo;w:Iintermediary field_20119Lnet/minecraft/class_4423;field_20119:Inamed activeSlotLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;activeSlot:I
-
field_27943
- Mappings:
Namespace Name Mixin selector official xLdoo;x:Lapn;intermediary field_27943Lnet/minecraft/class_4423;field_27943:Lnet/minecraft/class_1267;named field_27943Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_27943:Lnet/minecraft/world/Difficulty;
-
gameModeIndex
- Mappings:
Namespace Name Mixin selector official yLdoo;y:Lbts;intermediary field_20121Lnet/minecraft/class_4423;field_20121:Lnet/minecraft/class_1934;named gameModeIndexLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;gameModeIndex:Lnet/minecraft/world/GameMode;
-
pvp
private boolean pvp- Mappings:
Namespace Name Mixin selector official zLdoo;z: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 ALdoo;A: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 BLdoo;B: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 CLdoo;C:Zintermediary field_20125Lnet/minecraft/class_4423;field_20125:Znamed spawnMonstersLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnMonsters:Z
-
difficultyIndex
private int difficultyIndex- Mappings:
Namespace Name Mixin selector official DLdoo;D:Iintermediary field_20120Lnet/minecraft/class_4423;field_20120:Inamed difficultyIndexLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;difficultyIndex:I
-
commandBlocks
private boolean commandBlocks- Mappings:
Namespace Name Mixin selector official ELdoo;E: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 FLdoo;F:Zintermediary field_20128Lnet/minecraft/class_4423;field_20128:Znamed forceGameModeLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;forceGameMode:Z
-
spawnProtectionButton
- Mappings:
Namespace Name Mixin selector official GLdoo;G:Ldoo$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;
-
titleLabel
- Mappings:
Namespace Name Mixin selector official HLdoo;H:Lewf;intermediary field_20107Lnet/minecraft/class_4423;field_20107:Lnet/minecraft/class_4903;named titleLabelLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;titleLabel:Lnet/minecraft/client/realms/RealmsLabel;
-
toastMessage
- Mappings:
Namespace Name Mixin selector official ILdoo;I:Lewf;intermediary field_20502Lnet/minecraft/class_4423;field_20502:Lnet/minecraft/class_4903;named toastMessageLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;toastMessage:Lnet/minecraft/client/realms/RealmsLabel;
-
-
Constructor Details
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot)- Mappings:
Namespace Name Mixin selector official <init>Ldoo;<init>(Ldnx;Ldnb;Ldmv$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
-
removed
public void removed() -
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classRealmsScreen- Mappings:
Namespace Name Mixin selector official dLdsn;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
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:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdst;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
method_32498
- Mappings:
Namespace Name Mixin selector official aLdoo;a(Ljava/util/List;II)Ljava/lang/Object;intermediary method_32498Lnet/minecraft/class_4423;method_32498(Ljava/util/List;II)Ljava/lang/Object;named method_32498Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;method_32498(Ljava/util/List;II)Ljava/lang/Object;
-
method_32499
- Mappings:
Namespace Name Mixin selector official aLdoo;a(Ljava/util/List;Ljava/lang/Object;I)Iintermediary method_32499Lnet/minecraft/class_4423;method_32499(Ljava/util/List;Ljava/lang/Object;I)Inamed method_32499Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;method_32499(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.
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdsq;a(Ldlr;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
getSlotName
- Mappings:
Namespace Name Mixin selector official hLdoo;h()Ljava/lang/String;intermediary method_21484Lnet/minecraft/class_4423;method_21484()Ljava/lang/String;named getSlotNameLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;getSlotName()Ljava/lang/String;
-
saveSettings
private void saveSettings()- Mappings:
Namespace Name Mixin selector official iLdoo;i()Vintermediary method_21486Lnet/minecraft/class_4423;method_21486()Vnamed saveSettingsLnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;saveSettings()V
-