Class MultiplayerServerListWidget
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable
@Environment(CLIENT)
public class MultiplayerServerListWidget
extends AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
- Mappings:
Namespace Name intermediary net/minecraft/class_4267official exfnamed net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classclassNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Text(package private) static final Text(package private) static final Identifier(package private) static final Text(package private) static final Textprivate final List<MultiplayerServerListWidget.LanServerEntry>(package private) static final Logger(package private) static final Text(package private) static final Text(package private) static final Textprivate final MultiplayerServerListWidget.Entryprivate final MultiplayerScreen(package private) static final ThreadPoolExecutor(package private) static final Identifierprivate final List<MultiplayerServerListWidget.ServerEntry>(package private) static final IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionMultiplayerServerListWidget(MultiplayerScreen screen, MinecraftClient client, int width, int height, int top, int bottom, int entryHeight) -
Method Summary
Modifier and TypeMethodDescriptionintprotected intbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidsetLanServers(List<LanServerInfo> lanServers) voidvoidsetServers(ServerList servers) private voidMethods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
appendNarrations, getNavigationPathMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNavigationFocus, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, render, renderBackground, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setFocused, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDraggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, hoveredElement, isFocused, keyReleased, setFocusedMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector intermediary field_19104Lnet/minecraft/class_4267;field_19104:Lorg/slf4j/Logger;official aLexf;a:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LOGGER:Lorg/slf4j/Logger;
-
SERVER_PINGER_THREAD_POOL
- Mappings:
Namespace Name Mixin selector intermediary field_19105Lnet/minecraft/class_4267;field_19105:Ljava/util/concurrent/ThreadPoolExecutor;official lLexf;l:Ljava/util/concurrent/ThreadPoolExecutor;named SERVER_PINGER_THREAD_POOLLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_PINGER_THREAD_POOL:Ljava/util/concurrent/ThreadPoolExecutor;
-
UNKNOWN_SERVER_TEXTURE
- Mappings:
Namespace Name Mixin selector intermediary field_19106Lnet/minecraft/class_4267;field_19106:Lnet/minecraft/class_2960;official mLexf;m:Lacq;named UNKNOWN_SERVER_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;UNKNOWN_SERVER_TEXTURE:Lnet/minecraft/util/Identifier;
-
SERVER_SELECTION_TEXTURE
- Mappings:
Namespace Name Mixin selector intermediary field_19107Lnet/minecraft/class_4267;field_19107:Lnet/minecraft/class_2960;official nLexf;n:Lacq;named SERVER_SELECTION_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
-
ICONS_TEXTURE
- Mappings:
Namespace Name Mixin selector intermediary field_44671Lnet/minecraft/class_4267;field_44671:Lnet/minecraft/class_2960;official oLexf;o:Lacq;named ICONS_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;ICONS_TEXTURE:Lnet/minecraft/util/Identifier;
-
LAN_SCANNING_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_26581Lnet/minecraft/class_4267;field_26581:Lnet/minecraft/class_2561;official pLexf;p:Lsw;named LAN_SCANNING_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LAN_SCANNING_TEXT:Lnet/minecraft/text/Text;
-
CANNOT_RESOLVE_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_26582Lnet/minecraft/class_4267;field_26582:Lnet/minecraft/class_2561;official qLexf;q:Lsw;named CANNOT_RESOLVE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;CANNOT_RESOLVE_TEXT:Lnet/minecraft/text/Text;
-
CANNOT_CONNECT_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_26583Lnet/minecraft/class_4267;field_26583:Lnet/minecraft/class_2561;official rLexf;r:Lsw;named CANNOT_CONNECT_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;CANNOT_CONNECT_TEXT:Lnet/minecraft/text/Text;
-
INCOMPATIBLE_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_41853Lnet/minecraft/class_4267;field_41853:Lnet/minecraft/class_2561;official sLexf;s:Lsw;named INCOMPATIBLE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;INCOMPATIBLE_TEXT:Lnet/minecraft/text/Text;
-
NO_CONNECTION_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_41854Lnet/minecraft/class_4267;field_41854:Lnet/minecraft/class_2561;official tLexf;t:Lsw;named NO_CONNECTION_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;NO_CONNECTION_TEXT:Lnet/minecraft/text/Text;
-
PINGING_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_41855Lnet/minecraft/class_4267;field_41855:Lnet/minecraft/class_2561;official uLexf;u:Lsw;named PINGING_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_TEXT:Lnet/minecraft/text/Text;
-
ONLINE_TEXT
- Mappings:
Namespace Name Mixin selector intermediary field_41856Lnet/minecraft/class_4267;field_41856:Lnet/minecraft/class_2561;official vLexf;v:Lsw;named ONLINE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;ONLINE_TEXT:Lnet/minecraft/text/Text;
-
screen
- Mappings:
Namespace Name Mixin selector intermediary field_19108Lnet/minecraft/class_4267;field_19108:Lnet/minecraft/class_500;official wLexf;w:Lexc;named screenLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;
-
servers
- Mappings:
Namespace Name Mixin selector intermediary field_19109Lnet/minecraft/class_4267;field_19109:Ljava/util/List;official xLexf;x:Ljava/util/List;named serversLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;servers:Ljava/util/List;
-
scanningEntry
- Mappings:
Namespace Name Mixin selector intermediary field_19110Lnet/minecraft/class_4267;field_19110:Lnet/minecraft/class_4267$class_504;official yLexf;y:Lexf$a;named scanningEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;scanningEntry:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;
-
lanServers
- Mappings:
Namespace Name Mixin selector intermediary field_19111Lnet/minecraft/class_4267;field_19111:Ljava/util/List;official zLexf;z:Ljava/util/List;named lanServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;lanServers:Ljava/util/List;
-
-
Constructor Details
-
MultiplayerServerListWidget
public MultiplayerServerListWidget(MultiplayerScreen screen, MinecraftClient client, int width, int height, int top, int bottom, int entryHeight) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4267;<init>(Lnet/minecraft/class_500;Lnet/minecraft/class_310;IIIII)Vofficial <init>Lexf;<init>(Lexc;Lenf;IIIII)Vnamed <init>Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;<init>(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
Method Details
-
updateEntries
private void updateEntries()- Mappings:
Namespace Name Mixin selector intermediary method_20131Lnet/minecraft/class_4267;method_20131()Vofficial dLexf;d()Vnamed updateEntriesLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;updateEntries()V
-
setSelected
- Overrides:
setSelectedin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector intermediary method_20122Lnet/minecraft/class_4267;method_20122(Lnet/minecraft/class_4267$class_504;)Vofficial aLexf;a(Lexf$a;)Vnamed setSelectedLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setSelected(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;)V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLeqk;a(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
setServers
- Mappings:
Namespace Name Mixin selector intermediary method_20125Lnet/minecraft/class_4267;method_20125(Lnet/minecraft/class_641;)Vofficial aLexf;a(Lfet;)Vnamed setServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setServers(Lnet/minecraft/client/option/ServerList;)V
-
setLanServers
- Mappings:
Namespace Name Mixin selector intermediary method_20126Lnet/minecraft/class_4267;method_20126(Ljava/util/List;)Vofficial aLexf;a(Ljava/util/List;)Vnamed setLanServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setLanServers(Ljava/util/List;)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector intermediary method_25329Lnet/minecraft/class_350;method_25329()Iofficial cLeou;c()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector intermediary method_25322Lnet/minecraft/class_350;method_25322()Iofficial bLeou;b()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-