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
public class ServerSelectionList extends ExtendedList<ServerSelectionList.Entry>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerSelectionList.Entry
static class
ServerSelectionList.LanDetectedEntry
static class
ServerSelectionList.LanScanEntry
class
ServerSelectionList.NormalEntry
-
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
Fields Modifier and Type Field Description private static ITextComponent
CANT_CONNECT_TEXT
private static ITextComponent
CANT_RESOLVE_TEXT
private static ResourceLocation
ICON_MISSING
private static ResourceLocation
ICON_OVERLAY_LOCATION
private static ITextComponent
INCOMPATIBLE_TOOLTIP
private ServerSelectionList.Entry
lanHeader
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.List<ServerSelectionList.LanDetectedEntry>
networkServers
private static ITextComponent
NO_CONNECTION_TOOLTIP
private java.util.List<ServerSelectionList.NormalEntry>
onlineServers
private static ITextComponent
PINGING_TOOLTIP
private static ITextComponent
SCANNING_LABEL
private MultiplayerScreen
screen
private static java.util.concurrent.ThreadPoolExecutor
THREAD_POOL
-
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
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRowWidth()
protected int
getScrollbarPosition()
protected boolean
isFocused()
boolean
keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
protected void
moveSelection(AbstractList.Ordering p_241219_1_)
private void
refreshEntries()
void
setSelected(ServerSelectionList.Entry p_241215_1_)
void
updateNetworkServers(java.util.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
THREAD_POOL
private static final java.util.concurrent.ThreadPoolExecutor THREAD_POOL
-
ICON_MISSING
private static final ResourceLocation ICON_MISSING
-
ICON_OVERLAY_LOCATION
private static final ResourceLocation ICON_OVERLAY_LOCATION
-
SCANNING_LABEL
private static final ITextComponent SCANNING_LABEL
-
CANT_RESOLVE_TEXT
private static final ITextComponent CANT_RESOLVE_TEXT
-
CANT_CONNECT_TEXT
private static final ITextComponent CANT_CONNECT_TEXT
-
INCOMPATIBLE_TOOLTIP
private static final ITextComponent INCOMPATIBLE_TOOLTIP
-
NO_CONNECTION_TOOLTIP
private static final ITextComponent NO_CONNECTION_TOOLTIP
-
PINGING_TOOLTIP
private static final ITextComponent PINGING_TOOLTIP
-
screen
private final MultiplayerScreen screen
-
onlineServers
private final java.util.List<ServerSelectionList.NormalEntry> onlineServers
-
lanHeader
private final ServerSelectionList.Entry lanHeader
-
networkServers
private final java.util.List<ServerSelectionList.LanDetectedEntry> networkServers
-
-
Constructor Detail
-
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 Detail
-
refreshEntries
private void refreshEntries()
-
setSelected
public void setSelected(@Nullable ServerSelectionList.Entry p_241215_1_)
- 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
protected void moveSelection(AbstractList.Ordering p_241219_1_)
- Overrides:
moveSelection
in classAbstractList<ServerSelectionList.Entry>
-
updateOnlineServers
public void updateOnlineServers(ServerList p_148195_1_)
-
updateNetworkServers
public void updateNetworkServers(java.util.List<LanServerInfo> p_148194_1_)
-
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>
-
-