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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classclassNested 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
FieldsModifier and TypeFieldDescriptionprivate static final ITextComponentprivate static final ITextComponentprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ITextComponentprivate final ServerSelectionList.Entryprivate static final org.apache.logging.log4j.Loggerprivate final List<ServerSelectionList.LanDetectedEntry>private static final ITextComponentprivate final List<ServerSelectionList.NormalEntry>private static final ITextComponentprivate static final ITextComponentprivate final MultiplayerScreenprivate static final ThreadPoolExecutorFields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionServerSelectionList(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 TypeMethodDescriptionintprotected intprotected booleanbooleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) protected voidmoveSelection(AbstractList.Ordering p_241219_1_) private voidvoidsetSelected(ServerSelectionList.Entry p_241215_1_) voidupdateNetworkServers(List<LanServerInfo> p_148194_1_) voidupdateOnlineServers(ServerList p_148195_1_) Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocusMethods 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, updateSizeMethods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods 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:
setSelectedin classAbstractList<ServerSelectionList.Entry>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler- Overrides:
keyPressedin classAbstractList<ServerSelectionList.Entry>
-
moveSelection
- Overrides:
moveSelectionin classAbstractList<ServerSelectionList.Entry>
-
updateOnlineServers
-
updateNetworkServers
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classAbstractList<ServerSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractList<ServerSelectionList.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classAbstractList<ServerSelectionList.Entry>
-