Class RealmsSlotOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate booleanprivate static final intprivate static final intprivate final Stringstatic final List<Difficulty> private Difficultyprivate booleanprivate GameTypeprivate static final Componentprivate EditBoxprivate final RealmsWorldOptionsprotected final RealmsConfigureWorldScreenprivate boolean(package private) static final Componentprivate static final Componentprivate booleanprivate booleanprivate boolean(package private) int(package private) RealmsSlotOptionsScreen.SettingsSliderprivate Stringprivate final RealmsServer.WorldTypeFields inherited from class net.minecraft.realms.RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionRealmsSlotOptionsScreen(RealmsConfigureWorldScreen p_89886_, RealmsWorldOptions p_89887_, RealmsServer.WorldType p_89888_, int p_89889_) -
Method Summary
Modifier and TypeMethodDescriptionprivate CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component p_231324_, Consumer<Boolean> p_231325_) private static <T> TfindByIndex(List<T> p_167525_, int p_167526_, int p_167527_) private static <T> intvoidinit()booleankeyPressed(int p_89891_, int p_89892_, int p_89893_) voidrender(GuiGraphics p_283210_, int p_283172_, int p_281531_, float p_283191_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an eventprivate voidprivate voidsetWorldName(String p_231314_) Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DEFAULT_DIFFICULTY
private static final int DEFAULT_DIFFICULTY- See Also:
-
DIFFICULTIES
-
DEFAULT_GAME_MODE
private static final int DEFAULT_GAME_MODE- See Also:
-
GAME_MODES
-
NAME_LABEL
-
SPAWN_PROTECTION_TEXT
-
SPAWN_WARNING_TITLE
-
nameEdit
-
parent
-
column1X
private int column1X -
columnWidth
private int columnWidth -
options
-
worldType
-
difficulty
-
gameMode
-
defaultSlotName
-
worldName
-
pvp
private boolean pvp -
spawnNPCs
private boolean spawnNPCs -
spawnAnimals
private boolean spawnAnimals -
spawnMonsters
private boolean spawnMonsters -
spawnProtection
int spawnProtection -
commandBlocks
private boolean commandBlocks -
forceGameMode
private boolean forceGameMode -
spawnProtectionButton
RealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton
-
-
Constructor Details
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen p_89886_, RealmsWorldOptions p_89887_, RealmsServer.WorldType p_89888_, int p_89889_)
-
-
Method Details
-
keyPressed
public boolean keyPressed(int p_89891_, int p_89892_, int p_89893_) - Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
findByIndex
-
findIndex
-
init
public void init() -
confirmDangerousOption
private CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component p_231324_, Consumer<Boolean> p_231325_) -
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
render
Description copied from class:ScreenNeo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an event- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
setWorldName
-
saveSettings
private void saveSettings()
-