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
- Mappings:
Namespace Name official ecw
intermediary net/minecraft/class_4423
named net/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private boolean
private final String
static final List<Difficulty>
private Difficulty
private static final Text
private static final int
private static final int
private boolean
private GameMode
private TextFieldWidget
private final RealmsWorldOptions
protected final RealmsConfigureWorldScreen
private boolean
private String
(package private) static final Text
private static final Text
private boolean
private boolean
private boolean
(package private) int
(package private) RealmsSlotOptionsScreen.SettingsSlider
private final RealmsServer.WorldType
Fields 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_33045, field_33046, field_33047, field_33048, field_33049, field_33050, field_33051, field_33052, field_33053, field_33054, field_33055, field_33056, field_33057, field_33060, field_33061, field_33062, field_33063, field_33064, MAX_FILE_SIZE, RED, WHITE
Fields inherited from class net.minecraft.client.gui.screen.Screen
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
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionRealmsSlotOptionsScreen
(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> T
getSpawnToggleButtonCallback
(Text text, Consumer<Boolean> valueSetter) private static <T> int
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.void
removed()
void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) private void
private void
setSlotName
(String slotName) void
tick()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, shouldPause, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, 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
-
field_32125
private static final int field_32125- See Also:
- Mappings:
Namespace Name Mixin selector official R
Lecw;R:I
intermediary field_32125
Lnet/minecraft/class_4423;field_32125:I
named field_32125
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32125:I
-
DIFFICULTIES
- Mappings:
Namespace Name Mixin selector official a
Lecw;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;
-
field_32126
private static final int field_32126- See Also:
- Mappings:
Namespace Name Mixin selector official S
Lecw;S:I
intermediary field_32126
Lnet/minecraft/class_4423;field_32126:I
named field_32126
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;field_32126:I
-
GAME_MODES
- Mappings:
Namespace Name Mixin selector official b
Lecw;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 T
Lecw;T:Lrm;
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 U
Lecw;U:Lrm;
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;
-
SPAWN_TOGGLE_TITLE
- Mappings:
Namespace Name Mixin selector official V
Lecw;V:Lrm;
intermediary field_39186
Lnet/minecraft/class_4423;field_39186:Lnet/minecraft/class_2561;
named SPAWN_TOGGLE_TITLE
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;SPAWN_TOGGLE_TITLE:Lnet/minecraft/text/Text;
-
nameEdit
- Mappings:
Namespace Name Mixin selector official W
Lecw;W:Leha;
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
Lecw;c:Lecf;
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 X
Lecw;X: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 Y
Lecw;Y: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 Z
Lecw;Z:Lebe;
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 aa
Lecw;aa:Leay$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;
-
difficulty
- Mappings:
Namespace Name Mixin selector official ab
Lecw;ab:Lazj;
intermediary field_27943
Lnet/minecraft/class_4423;field_27943:Lnet/minecraft/class_1267;
named difficulty
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;difficulty:Lnet/minecraft/world/Difficulty;
-
gameMode
- Mappings:
Namespace Name Mixin selector official ac
Lecw;ac:Lcfx;
intermediary field_20121
Lnet/minecraft/class_4423;field_20121:Lnet/minecraft/class_1934;
named gameMode
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;gameMode:Lnet/minecraft/world/GameMode;
-
defaultSlotName
- Mappings:
Namespace Name Mixin selector official ad
Lecw;ad:Ljava/lang/String;
intermediary field_39187
Lnet/minecraft/class_4423;field_39187:Ljava/lang/String;
named defaultSlotName
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;defaultSlotName:Ljava/lang/String;
-
slotName
- Mappings:
Namespace Name Mixin selector official ae
Lecw;ae:Ljava/lang/String;
intermediary field_39188
Lnet/minecraft/class_4423;field_39188:Ljava/lang/String;
named slotName
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;slotName:Ljava/lang/String;
-
pvp
private boolean pvp- Mappings:
Namespace Name Mixin selector official af
Lecw;af: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 ag
Lecw;ag: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 ah
Lecw;ah: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 ai
Lecw;ai:Z
intermediary field_20125
Lnet/minecraft/class_4423;field_20125:Z
named spawnMonsters
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnMonsters:Z
-
spawnProtection
int spawnProtection- Mappings:
Namespace Name Mixin selector official aj
Lecw;aj:I
intermediary field_20120
Lnet/minecraft/class_4423;field_20120:I
named spawnProtection
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;spawnProtection:I
-
commandBlocks
private boolean commandBlocks- Mappings:
Namespace Name Mixin selector official ak
Lecw;ak: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 al
Lecw;al:Z
intermediary field_20128
Lnet/minecraft/class_4423;field_20128:Z
named forceGameMode
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;forceGameMode:Z
-
spawnProtectionButton
RealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton- Mappings:
Namespace Name Mixin selector official am
Lecw;am:Lecw$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;
-
-
Constructor Details
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot) - Mappings:
Namespace Name Mixin selector official <init>
Lecw;<init>(Lecf;Lebe;Leay$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() -
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:
- Mappings:
Namespace Name Mixin selector official a
Lehq;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
get
- Mappings:
Namespace Name Mixin selector official a
Lecw;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 get
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;get(Ljava/util/List;II)Ljava/lang/Object;
-
indexOf
- Mappings:
Namespace Name Mixin selector official a
Lecw;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 indexOf
Lnet/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.
-
getSpawnToggleButtonCallback
private CyclingButtonWidget.UpdateCallback<Boolean> getSpawnToggleButtonCallback(Text text, Consumer<Boolean> valueSetter) - Mappings:
Namespace Name Mixin selector official a
Lecw;a(Lrm;Ljava/util/function/Consumer;)Legy$b;
intermediary method_43756
Lnet/minecraft/class_4423;method_43756(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;)Lnet/minecraft/class_5676$class_5678;
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;
-
getNarratedTitle
- Overrides:
getNarratedTitle
in classScreen
- Mappings:
Namespace Name Mixin selector official af_
Lekj;af_()Lrm;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lehn;a(Ldzt;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
-
setSlotName
- Mappings:
Namespace Name Mixin selector official a
Lecw;a(Ljava/lang/String;)V
intermediary method_43757
Lnet/minecraft/class_4423;method_43757(Ljava/lang/String;)V
named setSlotName
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;setSlotName(Ljava/lang/String;)V
-
saveSettings
private void saveSettings()- Mappings:
Namespace Name Mixin selector official j
Lecw;j()V
intermediary method_21486
Lnet/minecraft/class_4423;method_21486()V
named saveSettings
Lnet/minecraft/client/realms/gui/screen/RealmsSlotOptionsScreen;saveSettings()V
-