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 doo
intermediary net/minecraft/class_4423
named net/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
RealmsSlotOptionsScreen.SettingsSlider
-
Field Summary
Fields Modifier and Type Field Description private int
activeSlot
private int
column1_x
private int
column2_x
private boolean
commandBlocks
static List<Difficulty>
DIFFICULTIES
private int
difficultyIndex
private static Text
EDIT_SLOT_NAME
private Difficulty
field_27943
private boolean
forceGameMode
static List<GameMode>
GAME_MODES
private GameMode
gameModeIndex
private TextFieldWidget
nameEdit
private RealmsWorldOptions
options
protected RealmsConfigureWorldScreen
parent
private boolean
pvp
private static Text
SPAWN_PROTECTION
private boolean
spawnAnimals
private boolean
spawnMonsters
private boolean
spawnNPCs
private RealmsSlotOptionsScreen.SettingsSlider
spawnProtectionButton
private RealmsLabel
titleLabel
private RealmsLabel
toastMessage
private RealmsServer.WorldType
worldType
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields 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 String
getSlotName()
void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private static <T> T
method_32498(List<T> list, int int2, int int3)
private static <T> int
method_32499(List<T> list, T t, int int2)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private void
saveSettings()
void
tick()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods 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, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods 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 a
Ldoo;a:Ljava/util/List;
intermediary field_22723
Lnet/minecraft/class_4423;field_22723:Ljava/util/List;
named DIFFICULTIES
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;DIFFICULTIES:Ljava/util/List;
-
GAME_MODES
- Mappings:
Namespace Name Mixin selector official b
Ldoo;b:Ljava/util/List;
intermediary field_22724
Lnet/minecraft/class_4423;field_22724:Ljava/util/List;
named GAME_MODES
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;GAME_MODES:Ljava/util/List;
-
EDIT_SLOT_NAME
- Mappings:
Namespace Name Mixin selector official p
Ldoo;p:Loi;
intermediary field_26516
Lnet/minecraft/class_4423;field_26516:Lnet/minecraft/class_2561;
named EDIT_SLOT_NAME
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;EDIT_SLOT_NAME:Lnet/minecraft/text/Text;
-
SPAWN_PROTECTION
- Mappings:
Namespace Name Mixin selector official q
Ldoo;q:Loi;
intermediary field_27942
Lnet/minecraft/class_4423;field_27942:Lnet/minecraft/class_2561;
named SPAWN_PROTECTION
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_PROTECTION:Lnet/minecraft/text/Text;
-
nameEdit
- Mappings:
Namespace Name Mixin selector official r
Ldoo;r:Ldsc;
intermediary field_20113
Lnet/minecraft/class_4423;field_20113:Lnet/minecraft/class_342;
named nameEdit
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;nameEdit:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
parent
- Mappings:
Namespace Name Mixin selector official c
Ldoo;c:Ldnx;
intermediary field_20109
Lnet/minecraft/class_4423;field_20109:Lnet/minecraft/class_4388;
named parent
Lnet/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 s
Ldoo;s:I
intermediary field_20114
Lnet/minecraft/class_4423;field_20114:I
named column1_x
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column1_x:I
-
column2_x
private int column2_x- Mappings:
Namespace Name Mixin selector official t
Ldoo;t:I
intermediary field_20116
Lnet/minecraft/class_4423;field_20116:I
named column2_x
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;column2_x:I
-
options
- Mappings:
Namespace Name Mixin selector official u
Ldoo;u:Ldnb;
intermediary field_20117
Lnet/minecraft/class_4423;field_20117:Lnet/minecraft/class_4883;
named options
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;options:Lnet/minecraft/client/realms/dto/RealmsWorldOptions;
-
worldType
- Mappings:
Namespace Name Mixin selector official v
Ldoo;v:Ldmv$c;
intermediary field_20118
Lnet/minecraft/class_4423;field_20118:Lnet/minecraft/class_4877$class_4321;
named worldType
Lnet/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 w
Ldoo;w:I
intermediary field_20119
Lnet/minecraft/class_4423;field_20119:I
named activeSlot
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;activeSlot:I
-
field_27943
- Mappings:
Namespace Name Mixin selector official x
Ldoo;x:Lapn;
intermediary field_27943
Lnet/minecraft/class_4423;field_27943:Lnet/minecraft/class_1267;
named field_27943
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_27943:Lnet/minecraft/world/Difficulty;
-
gameModeIndex
- Mappings:
Namespace Name Mixin selector official y
Ldoo;y:Lbts;
intermediary field_20121
Lnet/minecraft/class_4423;field_20121:Lnet/minecraft/class_1934;
named gameModeIndex
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;gameModeIndex:Lnet/minecraft/world/GameMode;
-
pvp
private boolean pvp- Mappings:
Namespace Name Mixin selector official z
Ldoo;z:Z
intermediary field_20122
Lnet/minecraft/class_4423;field_20122:Z
named pvp
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;pvp:Z
-
spawnNPCs
private boolean spawnNPCs- Mappings:
Namespace Name Mixin selector official A
Ldoo;A:Z
intermediary field_20123
Lnet/minecraft/class_4423;field_20123:Z
named spawnNPCs
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnNPCs:Z
-
spawnAnimals
private boolean spawnAnimals- Mappings:
Namespace Name Mixin selector official B
Ldoo;B:Z
intermediary field_20124
Lnet/minecraft/class_4423;field_20124:Z
named spawnAnimals
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnAnimals:Z
-
spawnMonsters
private boolean spawnMonsters- Mappings:
Namespace Name Mixin selector official C
Ldoo;C:Z
intermediary field_20125
Lnet/minecraft/class_4423;field_20125:Z
named spawnMonsters
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnMonsters:Z
-
difficultyIndex
private int difficultyIndex- Mappings:
Namespace Name Mixin selector official D
Ldoo;D:I
intermediary field_20120
Lnet/minecraft/class_4423;field_20120:I
named difficultyIndex
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;difficultyIndex:I
-
commandBlocks
private boolean commandBlocks- Mappings:
Namespace Name Mixin selector official E
Ldoo;E:Z
intermediary field_20127
Lnet/minecraft/class_4423;field_20127:Z
named commandBlocks
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;commandBlocks:Z
-
forceGameMode
private boolean forceGameMode- Mappings:
Namespace Name Mixin selector official F
Ldoo;F:Z
intermediary field_20128
Lnet/minecraft/class_4423;field_20128:Z
named forceGameMode
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;forceGameMode:Z
-
spawnProtectionButton
- Mappings:
Namespace Name Mixin selector official G
Ldoo;G:Ldoo$a;
intermediary field_20133
Lnet/minecraft/class_4423;field_20133:Lnet/minecraft/class_4423$class_4424;
named spawnProtectionButton
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtectionButton:Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen$SettingsSlider;
-
titleLabel
- Mappings:
Namespace Name Mixin selector official H
Ldoo;H:Lewf;
intermediary field_20107
Lnet/minecraft/class_4423;field_20107:Lnet/minecraft/class_4903;
named titleLabel
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;titleLabel:Lnet/minecraft/client/realms/RealmsLabel;
-
toastMessage
- Mappings:
Namespace Name Mixin selector official I
Ldoo;I:Lewf;
intermediary field_20502
Lnet/minecraft/class_4423;field_20502:Lnet/minecraft/class_4903;
named toastMessage
Lnet/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)V
intermediary <init>
Lnet/minecraft/class_4423;<init>(Lnet/minecraft/class_4388;Lnet/minecraft/class_4883;Lnet/minecraft/class_4877$class_4321;I)V
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
-
-
Method Details
-
removed
public void removed() -
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classRealmsScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to 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 a
Ldst;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
method_32498
- Mappings:
Namespace Name Mixin selector official a
Ldoo;a(Ljava/util/List;II)Ljava/lang/Object;
intermediary method_32498
Lnet/minecraft/class_4423;method_32498(Ljava/util/List;II)Ljava/lang/Object;
named method_32498
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;method_32498(Ljava/util/List;II)Ljava/lang/Object;
-
method_32499
- Mappings:
Namespace Name Mixin selector official a
Ldoo;a(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
named method_32499
Lnet/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:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
getSlotName
- Mappings:
Namespace Name Mixin selector official h
Ldoo;h()Ljava/lang/String;
intermediary method_21484
Lnet/minecraft/class_4423;method_21484()Ljava/lang/String;
named getSlotName
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;getSlotName()Ljava/lang/String;
-
saveSettings
private void saveSettings()- Mappings:
Namespace Name Mixin selector official i
Ldoo;i()V
intermediary method_21486
Lnet/minecraft/class_4423;method_21486()V
named saveSettings
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;saveSettings()V
-