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 SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier 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.RealmsScreenCOLOR_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.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionRealmsSlotOptionsScreen(RealmsConfigureWorldScreen p_89886_, RealmsWorldOptions p_89887_, RealmsServer.WorldType p_89888_, int p_89889_) 
- 
Method SummaryModifier 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_) private voidprivate voidsetWorldName(String p_231314_) Methods inherited from class net.minecraft.realms.RealmsScreenaddLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
DEFAULT_DIFFICULTYprivate static final int DEFAULT_DIFFICULTY- See Also:
 
- 
DIFFICULTIES
- 
DEFAULT_GAME_MODEprivate static final int DEFAULT_GAME_MODE- See Also:
 
- 
GAME_MODES
- 
NAME_LABEL
- 
SPAWN_PROTECTION_TEXT
- 
SPAWN_WARNING_TITLE
- 
nameEdit
- 
parent
- 
column1Xprivate int column1X
- 
columnWidthprivate int columnWidth
- 
options
- 
worldType
- 
difficulty
- 
gameMode
- 
defaultSlotName
- 
worldName
- 
pvpprivate boolean pvp
- 
spawnNPCsprivate boolean spawnNPCs
- 
spawnAnimalsprivate boolean spawnAnimals
- 
spawnMonstersprivate boolean spawnMonsters
- 
spawnProtectionint spawnProtection
- 
commandBlocksprivate boolean commandBlocks
- 
forceGameModeprivate boolean forceGameMode
- 
spawnProtectionButtonRealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton
 
- 
- 
Constructor Details- 
RealmsSlotOptionsScreenpublic RealmsSlotOptionsScreen(RealmsConfigureWorldScreen p_89886_, RealmsWorldOptions p_89887_, RealmsServer.WorldType p_89888_, int p_89889_) 
 
- 
- 
Method Details- 
keyPressedpublic boolean keyPressed(int p_89891_, int p_89892_, int p_89893_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
findByIndex
- 
findIndex
- 
initpublic void init()
- 
confirmDangerousOptionprivate CycleButton.OnValueChange<Boolean> confirmDangerousOption(Component p_231324_, Consumer<Boolean> p_231325_) 
- 
getNarrationMessage- Overrides:
- getNarrationMessagein class- Screen
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
setWorldName
- 
saveSettingsprivate void saveSettings()
 
-