Class MultiplayerServerListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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,ParentElement
@Environment(CLIENT) public class MultiplayerServerListWidget extends AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
- Mappings:
Namespace Name official dxsintermediary net/minecraft/class_4267named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiplayerServerListWidget.Entrystatic classMultiplayerServerListWidget.LanServerEntrystatic classMultiplayerServerListWidget.ScanningEntryclassMultiplayerServerListWidget.ServerEntryNested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection -
Field Summary
Fields Modifier and Type Field Description private static TextCANNOT_CONNECT_TEXTprivate static TextCANNOT_RESOLVE_TEXTprivate static TextINCOMPATIBLE_TEXTprivate static TextLAN_SCANNING_TEXTprivate List<MultiplayerServerListWidget.LanServerEntry>lanServersprivate static LoggerLOGGERprivate static TextNO_CONNECTION_TEXTprivate static TextPINGING_TEXTprivate MultiplayerServerListWidget.EntryscanningEntryprivate MultiplayerScreenscreenprivate static ThreadPoolExecutorSERVER_PINGER_THREAD_POOLprivate static IdentifierSERVER_SELECTION_TEXTUREprivate List<MultiplayerServerListWidget.ServerEntry>serversprivate static IdentifierUNKNOWN_SERVER_TEXTUREFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description MultiplayerServerListWidget(MultiplayerScreen screen, MinecraftClient client, int width, int height, int top, int bottom, int entryHeight) -
Method Summary
Modifier and Type Method Description intgetRowWidth()protected intgetScrollbarPositionX()protected booleanisFocused()booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.protected voidmoveSelection(EntryListWidget.MoveDirection direction)voidsetLanServers(List<LanServerInfo> lanServers)voidsetSelected(MultiplayerServerListWidget.Entry entry)voidsetServers(ServerList servers)private voidupdateEntries()Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedItem, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods 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.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdxs;a:Lorg/apache/logging/log4j/Logger;intermediary field_19104Lnet/minecraft/class_4267;field_19104:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LOGGER:Lorg/apache/logging/log4j/Logger;
-
SERVER_PINGER_THREAD_POOL
- Mappings:
Namespace Name Mixin selector official oLdxs;o: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;
-
UNKNOWN_SERVER_TEXTURE
- Mappings:
Namespace Name Mixin selector official pLdxs;p:Lwb;intermediary field_19106Lnet/minecraft/class_4267;field_19106:Lnet/minecraft/class_2960;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 official qLdxs;q:Lwb;intermediary field_19107Lnet/minecraft/class_4267;field_19107:Lnet/minecraft/class_2960;named SERVER_SELECTION_TEXTURELnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
-
LAN_SCANNING_TEXT
- Mappings:
Namespace Name Mixin selector official rLdxs;r:Loi;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 sLdxs;s:Loi;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 tLdxs;t:Loi;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 uLdxs;u:Loi;intermediary field_26849Lnet/minecraft/class_4267;field_26849: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 vLdxs;v:Loi;intermediary field_26586Lnet/minecraft/class_4267;field_26586: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 wLdxs;w:Loi;intermediary field_26587Lnet/minecraft/class_4267;field_26587:Lnet/minecraft/class_2561;named PINGING_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_TEXT:Lnet/minecraft/text/Text;
-
screen
- Mappings:
Namespace Name Mixin selector official xLdxs;x:Ldxq;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 yLdxs;y: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 zLdxs;z:Ldxs$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 ALdxs;A: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, int entryHeight)- Mappings:
Namespace Name Mixin selector official <init>Ldxs;<init>(Ldxq;Ldqk;IIIII)Vintermediary <init>Lnet/minecraft/class_4267;<init>(Lnet/minecraft/class_500;Lnet/minecraft/class_310;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 official CLdxs;C()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 aLdxs;a(Ldxs$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.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classEntryListWidget<MultiplayerServerListWidget.Entry>- 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:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdst;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
moveSelection
- Overrides:
moveSelectionin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdrq;a(Ldrq$b;)Vintermediary method_25335Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)Vnamed moveSelectionLnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
setServers
- Mappings:
Namespace Name Mixin selector official aLdxs;a(Leef;)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 aLdxs;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
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official eLdrq;e()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official dLdrq;d()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official bLdrq;b()Zintermediary method_25316Lnet/minecraft/class_350;method_25316()Znamed isFocusedLnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-