Class JoinMultiplayerScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen
- 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
Modifier and TypeFieldDescriptionstatic final int
private Button
private Button
private ServerData
static final int
private boolean
private LanServerDetection.LanServerList
private final Screen
private static final org.slf4j.Logger
static final int
private final ServerStatusPinger
private Button
private ServerList
protected ServerSelectionList
static final int
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addServerCallback
(boolean p_99722_) private void
deleteCallback
(boolean p_99712_) private void
directJoinCallback
(boolean p_99726_) private void
editServerCallback
(boolean p_99717_) protected void
init()
private void
join
(ServerData p_99703_) void
boolean
keyPressed
(int p_99690_, int p_99691_, int p_99692_) void
onClose()
protected void
private void
void
removed()
void
render
(GuiGraphics p_281617_, int p_281629_, int p_281983_, float p_283431_) void
setSelected
(ServerSelectionList.Entry p_99701_) void
setToolTip
(List<Component> p_99708_) void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BUTTON_ROW_WIDTH
public static final int BUTTON_ROW_WIDTH- See Also:
-
TOP_ROW_BUTTON_WIDTH
public static final int TOP_ROW_BUTTON_WIDTH- See Also:
-
LOWER_ROW_BUTTON_WIDTH
public static final int LOWER_ROW_BUTTON_WIDTH- See Also:
-
FOOTER_HEIGHT
public static final int FOOTER_HEIGHT- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pinger
-
lastScreen
-
serverSelectionList
-
servers
-
editButton
-
selectButton
-
deleteButton
-
toolTip
-
editingServer
-
lanServerList
-
lanServerDetector
-
initedOnce
private boolean initedOnce
-
-
Constructor Details
-
JoinMultiplayerScreen
-
-
Method Details
-
init
protected void init() -
tick
public void tick() -
removed
public void removed() -
refreshServerList
private void refreshServerList() -
deleteCallback
private void deleteCallback(boolean p_99712_) -
editServerCallback
private void editServerCallback(boolean p_99717_) -
addServerCallback
private void addServerCallback(boolean p_99722_) -
directJoinCallback
private void directJoinCallback(boolean p_99726_) -
keyPressed
public boolean keyPressed(int p_99690_, int p_99691_, int p_99692_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
joinSelectedServer
public void joinSelectedServer() -
join
-
setSelected
-
onSelectedChange
protected void onSelectedChange() -
onClose
public void onClose() -
getPinger
-
setToolTip
-
getServers
-