Package net.minecraft.client.gui.screens
Class ManageServerScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.ManageServerScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Buttonprivate final it.unimi.dsi.fastutil.booleans.BooleanConsumerprivate static final Componentprivate static final Componentprivate EditBoxprivate final Screenprivate static final Componentprivate EditBoxprivate final ServerDataFields inherited from class net.minecraft.client.gui.screens.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
ConstructorsConstructorDescriptionManageServerScreen(Screen pLastScreen, Component pTitle, it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, ServerData pServerData) -
Method Summary
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods 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
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
NAME_LABEL
-
IP_LABEL
-
DEFAULT_SERVER_NAME
-
addButton
-
callback
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback -
serverData
-
ipEdit
-
nameEdit
-
lastScreen
-
-
Constructor Details
-
ManageServerScreen
public ManageServerScreen(Screen pLastScreen, Component pTitle, it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, ServerData pServerData)
-
-
Method Details
-
init
protected void init() -
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
resize
public void resize(int p_445975_, int p_445475_) -
onAdd
private void onAdd() -
onClose
public void onClose() -
updateAddButtonStatus
private void updateAddButtonStatus() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_445512_- the GuiGraphics object used for rendering.p_446346_- the x-coordinate of the mouse cursor.p_445945_- the y-coordinate of the mouse cursor.p_445468_- the partial tick time.
-