Class WorldOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.options.WorldOptionsScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, HasDifficultyReaction, HasGamemasterPermissionReaction
public class WorldOptionsScreen
extends Screen
implements HasGamemasterPermissionReaction, HasDifficultyReaction
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentstatic final Tooltipprivate final DifficultyButtonsprivate static final Componentstatic final Tooltipprivate static final Tooltipprivate static final Componentprivate @Nullable CycleButton<GameType> private static final Tooltipprivate static final Tooltipprivate final Screenprivate final HeaderAndFooterLayoutprivate static final Componentprivate static final ComponentFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()private CycleButton<Boolean> createAllowCommandsButton(IntegratedServer singleplayerServer) private CycleButton<GameType> createGameModeButton(IntegratedServer singleplayerServer) private ButtoncreateGameRulesButton(@Nullable IntegratedServer singleplayerServer) private Buttonprotected voidinit()voidonClose()voidvoidonGamemasterPermissionChanged(boolean hasGamemasterPermission) protected voidprivate voidupdateButton(@Nullable AbstractWidget widget, @Nullable IntegratedServer singleplayerServer, Tooltip hardcoreTooltip, Tooltip disabledTooltip) Methods inherited from class Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
TITLE
-
ALLOW_COMMANDS
-
GAME_MODE
-
GAME_RULES
-
GAMERULES_DISABLED_TOOLTIP
-
GAMERULES_DISABLED_HARDCORE_TOOLTIP
-
GAME_MODE_DISABLED_HARDCORE_TOOLTIP
-
GAME_MODE_DISABLED_OPERATOR_TOOLTIP
-
ALLOW_COMMANDS_DISABLED_TOOLTIP
-
RESTRICTIONS
-
lastScreen
-
layout
-
difficultyButtons
-
gameRulesButton
-
gameModeButton
-
-
Constructor Details
-
WorldOptionsScreen
-
-
Method Details
-
init
-
createGameModeButton
-
createAllowCommandsButton
-
createGameRulesButton
-
updateButton
private void updateButton(@Nullable AbstractWidget widget, @Nullable IntegratedServer singleplayerServer, Tooltip hardcoreTooltip, Tooltip disabledTooltip) -
createRestrictionsButton
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onClose
-
onGamemasterPermissionChanged
public void onGamemasterPermissionChanged(boolean hasGamemasterPermission) - Specified by:
onGamemasterPermissionChangedin interfaceHasGamemasterPermissionReaction
-
added
-
onDifficultyChanged
public void onDifficultyChanged()- Specified by:
onDifficultyChangedin interfaceHasDifficultyReaction
-