Class MultiplayerOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.MultiplayerOptionsScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Componentprivate booleanprivate static final Componentprivate GameTypeprivate booleanprivate GameTypeprivate MinecraftServer.MultiplayerScopeprivate intprivate static final Componentprivate static final Identifierprivate final Screenprivate final HeaderAndFooterLayoutprivate static final Componentprivate intprivate static final intprivate static final Componentprivate static final intprivate static final Componentprivate @Nullable StringWidgetprivate booleanprivate static final Componentprivate MinecraftServer.MultiplayerScopeFields 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 TypeMethodDescriptionprivate voidchangeMultiplayerScope(IntegratedServer singleplayerServer) voidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) private booleanprotected voidinit()private booleanvoidonClose()private booleanprivate voidpublish(IntegratedServer singleplayerServer, MinecraftServer.MultiplayerScope scope) protected voidprivate voidsendPublishMessage(Component message) private voidsetPortError(@Nullable Component errorMessage) tryParsePort(String value) private voidprivate voidMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, 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
-
PORT_LOWER_BOUND
private static final int PORT_LOWER_BOUND- See Also:
-
PORT_HIGHER_BOUND
private static final int PORT_HIGHER_BOUND- See Also:
-
TITLE
-
ALLOW_COMMANDS_LABEL
-
GAME_MODE_LABEL
-
PORT_INFO_TEXT
-
PORT_UNAVAILABLE
-
INVALID_PORT
-
OTHER_PLAYERS_HEADER
-
APPLY_CHANGES
-
INWORLD_MENU_LIST_BACKGROUND
-
layout
-
lastScreen
-
wantedMultiplayerScope
-
gameMode
-
commands
private boolean commands -
port
private int port -
portValid
private boolean portValid -
applyChanges
-
portEdit
-
portLabel
-
initialMultiplayerScope
-
initialGameMode
-
initialCommands
private boolean initialCommands -
initialPort
private int initialPort
-
-
Constructor Details
-
MultiplayerOptionsScreen
-
-
Method Details
-
init
-
updatePortControlsState
private void updatePortControlsState() -
setPortError
-
changeMultiplayerScope
-
updateApplyChangesActiveState
private void updateApplyChangesActiveState() -
portIsRequired
private boolean portIsRequired() -
lanPortChanged
private boolean lanPortChanged() -
hasSettingsChanges
private boolean hasSettingsChanges() -
publish
-
sendPublishMessage
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onClose
-
tryParsePort
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-