Package net.minecraft.client.gui.screen
Class ServerSelectionList
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.widget.list.AbstractList<E>
net.minecraft.client.gui.widget.list.ExtendedList<ServerSelectionList.Entry>
net.minecraft.client.gui.screen.ServerSelectionList
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.ExtendedList
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.AbstractList
AbstractList.Ordering
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ITextComponent
private static final ITextComponent
private static final ResourceLocation
private static final ResourceLocation
private static final ITextComponent
private final ServerSelectionList.Entry
private static final org.apache.logging.log4j.Logger
private final List<ServerSelectionList.LanDetectedEntry>
private static final ITextComponent
private final List<ServerSelectionList.NormalEntry>
private static final ITextComponent
private static final ITextComponent
private final MultiplayerScreen
private static final ThreadPoolExecutor
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionServerSelectionList
(MultiplayerScreen p_i45049_1_, Minecraft p_i45049_2_, int p_i45049_3_, int p_i45049_4_, int p_i45049_5_, int p_i45049_6_, int p_i45049_7_) -
Method Summary
Modifier and TypeMethodDescriptionint
protected int
protected boolean
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) protected void
moveSelection
(AbstractList.Ordering p_241219_1_) private void
void
setSelected
(ServerSelectionList.Entry p_241215_1_) void
updateNetworkServers
(List<LanServerInfo> p_148194_1_) void
updateOnlineServers
(ServerList p_148195_1_) Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.list.AbstractList
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, refreshSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
THREAD_POOL
-
ICON_MISSING
-
ICON_OVERLAY_LOCATION
-
SCANNING_LABEL
-
CANT_RESOLVE_TEXT
-
CANT_CONNECT_TEXT
-
INCOMPATIBLE_TOOLTIP
-
NO_CONNECTION_TOOLTIP
-
PINGING_TOOLTIP
-
screen
-
onlineServers
-
lanHeader
-
networkServers
-
-
Constructor Details
-
ServerSelectionList
public ServerSelectionList(MultiplayerScreen p_i45049_1_, Minecraft p_i45049_2_, int p_i45049_3_, int p_i45049_4_, int p_i45049_5_, int p_i45049_6_, int p_i45049_7_)
-
-
Method Details
-
refreshEntries
private void refreshEntries() -
setSelected
- Overrides:
setSelected
in classAbstractList<ServerSelectionList.Entry>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classAbstractList<ServerSelectionList.Entry>
-
moveSelection
- Overrides:
moveSelection
in classAbstractList<ServerSelectionList.Entry>
-
updateOnlineServers
-
updateNetworkServers
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPosition
in classAbstractList<ServerSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classAbstractList<ServerSelectionList.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocused
in classAbstractList<ServerSelectionList.Entry>
-