Class MultiplayerServerListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
net.minecraft.client.gui.widget.EntryListWidget<MultiplayerServerListWidget.Entry>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable,Widget
@Environment(CLIENT)
public class MultiplayerServerListWidget
extends AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
- Mappings:
Namespace Name official foeintermediary net/minecraft/class_4267named 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 Text(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Textprivate final List<MultiplayerServerListWidget.LanServerEntry> (package private) static final Logger(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Text(package private) static final Text(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Textprivate final MultiplayerServerListWidget.Entryprivate final MultiplayerScreen(package private) static final ThreadPoolExecutorprivate final List<MultiplayerServerListWidget.ServerEntry> (package private) static final IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeightFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, 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) -
Method Summary
Modifier and TypeMethodDescriptionintbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidvoidsetLanServers(List<LanServerInfo> lanServers) voidvoidsetServers(ServerList servers) private voidMethods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
appendClickableNarrations, getNavigationPathMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, ensureVisible, getDefaultScrollbarX, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollbarX, getSelectedOrNull, getType, isMouseOver, isScrollbarVisible, isSelectButton, isSelectedEntry, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, position, position, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, renderWidget, replaceEntries, setFocused, setRenderHeader, setScrollAmount, updateScrollingStateMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods 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
getNavigationFocus, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyReleasedMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
INCOMPATIBLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLfoe;a:Lakh;intermediary field_45516Lnet/minecraft/class_4267;field_45516:Lnet/minecraft/class_2960;named INCOMPATIBLE_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;INCOMPATIBLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
UNREACHABLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official mLfoe;m:Lakh;intermediary field_45517Lnet/minecraft/class_4267;field_45517:Lnet/minecraft/class_2960;named UNREACHABLE_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;UNREACHABLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_1_TEXTURE
- Mappings:
Namespace Name Mixin selector official nLfoe;n:Lakh;intermediary field_45518Lnet/minecraft/class_4267;field_45518:Lnet/minecraft/class_2960;named PING_1_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PING_1_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_2_TEXTURE
- Mappings:
Namespace Name Mixin selector official oLfoe;o:Lakh;intermediary field_45519Lnet/minecraft/class_4267;field_45519:Lnet/minecraft/class_2960;named PING_2_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PING_2_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_3_TEXTURE
- Mappings:
Namespace Name Mixin selector official pLfoe;p:Lakh;intermediary field_45520Lnet/minecraft/class_4267;field_45520:Lnet/minecraft/class_2960;named PING_3_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PING_3_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_4_TEXTURE
- Mappings:
Namespace Name Mixin selector official qLfoe;q:Lakh;intermediary field_45521Lnet/minecraft/class_4267;field_45521:Lnet/minecraft/class_2960;named PING_4_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PING_4_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_5_TEXTURE
- Mappings:
Namespace Name Mixin selector official rLfoe;r:Lakh;intermediary field_45522Lnet/minecraft/class_4267;field_45522:Lnet/minecraft/class_2960;named PING_5_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PING_5_TEXTURE:Lnet/minecraft/util/Identifier;
-
PINGING_1_TEXTURE
- Mappings:
Namespace Name Mixin selector official sLfoe;s:Lakh;intermediary field_45523Lnet/minecraft/class_4267;field_45523:Lnet/minecraft/class_2960;named PINGING_1_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_1_TEXTURE:Lnet/minecraft/util/Identifier;
-
PINGING_2_TEXTURE
- Mappings:
Namespace Name Mixin selector official uLfoe;u:Lakh;intermediary field_45524Lnet/minecraft/class_4267;field_45524:Lnet/minecraft/class_2960;named PINGING_2_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_2_TEXTURE:Lnet/minecraft/util/Identifier;
-
PINGING_3_TEXTURE
- Mappings:
Namespace Name Mixin selector official vLfoe;v:Lakh;intermediary field_45525Lnet/minecraft/class_4267;field_45525:Lnet/minecraft/class_2960;named PINGING_3_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_3_TEXTURE:Lnet/minecraft/util/Identifier;
-
PINGING_4_TEXTURE
- Mappings:
Namespace Name Mixin selector official wLfoe;w:Lakh;intermediary field_45526Lnet/minecraft/class_4267;field_45526:Lnet/minecraft/class_2960;named PINGING_4_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_4_TEXTURE:Lnet/minecraft/util/Identifier;
-
PINGING_5_TEXTURE
- Mappings:
Namespace Name Mixin selector official xLfoe;x:Lakh;intermediary field_45527Lnet/minecraft/class_4267;field_45527:Lnet/minecraft/class_2960;named PINGING_5_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_5_TEXTURE:Lnet/minecraft/util/Identifier;
-
JOIN_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official yLfoe;y:Lakh;intermediary field_45528Lnet/minecraft/class_4267;field_45528:Lnet/minecraft/class_2960;named JOIN_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
JOIN_TEXTURE
- Mappings:
Namespace Name Mixin selector official zLfoe;z:Lakh;intermediary field_45529Lnet/minecraft/class_4267;field_45529:Lnet/minecraft/class_2960;named JOIN_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;JOIN_TEXTURE:Lnet/minecraft/util/Identifier;
-
MOVE_UP_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official ALfoe;A:Lakh;intermediary field_45530Lnet/minecraft/class_4267;field_45530:Lnet/minecraft/class_2960;named MOVE_UP_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;MOVE_UP_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
MOVE_UP_TEXTURE
- Mappings:
Namespace Name Mixin selector official BLfoe;B:Lakh;intermediary field_45513Lnet/minecraft/class_4267;field_45513:Lnet/minecraft/class_2960;named MOVE_UP_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;MOVE_UP_TEXTURE:Lnet/minecraft/util/Identifier;
-
MOVE_DOWN_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official CLfoe;C:Lakh;intermediary field_45514Lnet/minecraft/class_4267;field_45514:Lnet/minecraft/class_2960;named MOVE_DOWN_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;MOVE_DOWN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
MOVE_DOWN_TEXTURE
- Mappings:
Namespace Name Mixin selector official DLfoe;D:Lakh;intermediary field_45515Lnet/minecraft/class_4267;field_45515:Lnet/minecraft/class_2960;named MOVE_DOWN_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;MOVE_DOWN_TEXTURE:Lnet/minecraft/util/Identifier;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official ELfoe;E:Lorg/slf4j/Logger;intermediary field_19104Lnet/minecraft/class_4267;field_19104:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LOGGER:Lorg/slf4j/Logger;
-
SERVER_PINGER_THREAD_POOL
- Mappings:
Namespace Name Mixin selector official FLfoe;F:Ljava/util/concurrent/ThreadPoolExecutor;intermediary field_19105Lnet/minecraft/class_4267;field_19105:Ljava/util/concurrent/ThreadPoolExecutor;named SERVER_PINGER_THREAD_POOLLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_PINGER_THREAD_POOL:Ljava/util/concurrent/ThreadPoolExecutor;
-
LAN_SCANNING_TEXT
- Mappings:
Namespace Name Mixin selector official GLfoe;G:Lwu;intermediary field_26581Lnet/minecraft/class_4267;field_26581:Lnet/minecraft/class_2561;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 official HLfoe;H:Lwu;intermediary field_26582Lnet/minecraft/class_4267;field_26582:Lnet/minecraft/class_2561;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 official ILfoe;I:Lwu;intermediary field_26583Lnet/minecraft/class_4267;field_26583:Lnet/minecraft/class_2561;named CANNOT_CONNECT_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;CANNOT_CONNECT_TEXT:Lnet/minecraft/text/Text;
-
INCOMPATIBLE_TEXT
- Mappings:
Namespace Name Mixin selector official JLfoe;J:Lwu;intermediary field_41853Lnet/minecraft/class_4267;field_41853:Lnet/minecraft/class_2561;named INCOMPATIBLE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;INCOMPATIBLE_TEXT:Lnet/minecraft/text/Text;
-
NO_CONNECTION_TEXT
- Mappings:
Namespace Name Mixin selector official KLfoe;K:Lwu;intermediary field_41854Lnet/minecraft/class_4267;field_41854:Lnet/minecraft/class_2561;named NO_CONNECTION_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;NO_CONNECTION_TEXT:Lnet/minecraft/text/Text;
-
PINGING_TEXT
- Mappings:
Namespace Name Mixin selector official LLfoe;L:Lwu;intermediary field_41855Lnet/minecraft/class_4267;field_41855:Lnet/minecraft/class_2561;named PINGING_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_TEXT:Lnet/minecraft/text/Text;
-
ONLINE_TEXT
- Mappings:
Namespace Name Mixin selector official MLfoe;M:Lwu;intermediary field_41856Lnet/minecraft/class_4267;field_41856:Lnet/minecraft/class_2561;named ONLINE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;ONLINE_TEXT:Lnet/minecraft/text/Text;
-
screen
- Mappings:
Namespace Name Mixin selector official NLfoe;N:Lfoa;intermediary field_19108Lnet/minecraft/class_4267;field_19108:Lnet/minecraft/class_500;named screenLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;
-
servers
- Mappings:
Namespace Name Mixin selector official OLfoe;O:Ljava/util/List;intermediary field_19109Lnet/minecraft/class_4267;field_19109:Ljava/util/List;named serversLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;servers:Ljava/util/List;
-
scanningEntry
- Mappings:
Namespace Name Mixin selector official PLfoe;P:Lfoe$a;intermediary field_19110Lnet/minecraft/class_4267;field_19110:Lnet/minecraft/class_4267$class_504;named scanningEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;scanningEntry:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;
-
lanServers
- Mappings:
Namespace Name Mixin selector official QLfoe;Q:Ljava/util/List;intermediary field_19111Lnet/minecraft/class_4267;field_19111: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) - Mappings:
Namespace Name Mixin selector official <init>Lfoe;<init>(Lfoa;Lfde;IIII)Vintermediary <init>Lnet/minecraft/class_4267;<init>(Lnet/minecraft/class_500;Lnet/minecraft/class_310;IIII)Vnamed <init>Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;<init>(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;Lnet/minecraft/client/MinecraftClient;IIII)V
-
-
Method Details
-
updateEntries
private void updateEntries()- Mappings:
Namespace Name Mixin selector official ILfoe;I()Vintermediary method_20131Lnet/minecraft/class_4267;method_20131()Vnamed updateEntriesLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;updateEntries()V
-
setSelected
- Overrides:
setSelectedin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLfoe;a(Lfoe$a;)Vintermediary method_20122Lnet/minecraft/class_4267;method_20122(Lnet/minecraft/class_4267$class_504;)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 official aLfha;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
setServers
- Mappings:
Namespace Name Mixin selector official aLfoe;a(Lfwl;)Vintermediary method_20125Lnet/minecraft/class_4267;method_20125(Lnet/minecraft/class_641;)Vnamed setServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setServers(Lnet/minecraft/client/option/ServerList;)V
-
setLanServers
- Mappings:
Namespace Name Mixin selector official aLfoe;a(Ljava/util/List;)Vintermediary method_20126Lnet/minecraft/class_4267;method_20126(Ljava/util/List;)Vnamed setLanServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setLanServers(Ljava/util/List;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official bLfez;b()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
onRemoved
public void onRemoved()- Mappings:
Namespace Name Mixin selector official dLfoe;d()Vintermediary method_52204Lnet/minecraft/class_4267;method_52204()Vnamed onRemovedLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;onRemoved()V
-