Class MultiplayerServerListWidget

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT)
public class MultiplayerServerListWidget
extends AlwaysSelectedEntryListWidget<MultiplayerServerListWidget.Entry>
Mappings:
Namespace Name
official dxs
intermediary net/minecraft/class_4267
named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldxs;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_19104 Lnet/minecraft/class_4267;field_19104:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LOGGER:Lorg/apache/logging/log4j/Logger;
    • SERVER_PINGER_THREAD_POOL

      private static final ThreadPoolExecutor SERVER_PINGER_THREAD_POOL
      Mappings:
      Namespace Name Mixin selector
      official o Ldxs;o:Ljava/util/concurrent/ThreadPoolExecutor;
      intermediary field_19105 Lnet/minecraft/class_4267;field_19105:Ljava/util/concurrent/ThreadPoolExecutor;
      named SERVER_PINGER_THREAD_POOL Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_PINGER_THREAD_POOL:Ljava/util/concurrent/ThreadPoolExecutor;
    • UNKNOWN_SERVER_TEXTURE

      private static final Identifier UNKNOWN_SERVER_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official p Ldxs;p:Lwb;
      intermediary field_19106 Lnet/minecraft/class_4267;field_19106:Lnet/minecraft/class_2960;
      named UNKNOWN_SERVER_TEXTURE Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;UNKNOWN_SERVER_TEXTURE:Lnet/minecraft/util/Identifier;
    • SERVER_SELECTION_TEXTURE

      private static final Identifier SERVER_SELECTION_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official q Ldxs;q:Lwb;
      intermediary field_19107 Lnet/minecraft/class_4267;field_19107:Lnet/minecraft/class_2960;
      named SERVER_SELECTION_TEXTURE Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;SERVER_SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
    • LAN_SCANNING_TEXT

      private static final Text LAN_SCANNING_TEXT
      Mappings:
      Namespace Name Mixin selector
      official r Ldxs;r:Loi;
      intermediary field_26581 Lnet/minecraft/class_4267;field_26581:Lnet/minecraft/class_2561;
      named LAN_SCANNING_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;LAN_SCANNING_TEXT:Lnet/minecraft/text/Text;
    • CANNOT_RESOLVE_TEXT

      private static final Text CANNOT_RESOLVE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official s Ldxs;s:Loi;
      intermediary field_26582 Lnet/minecraft/class_4267;field_26582:Lnet/minecraft/class_2561;
      named CANNOT_RESOLVE_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;CANNOT_RESOLVE_TEXT:Lnet/minecraft/text/Text;
    • CANNOT_CONNECT_TEXT

      private static final Text CANNOT_CONNECT_TEXT
      Mappings:
      Namespace Name Mixin selector
      official t Ldxs;t:Loi;
      intermediary field_26583 Lnet/minecraft/class_4267;field_26583:Lnet/minecraft/class_2561;
      named CANNOT_CONNECT_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;CANNOT_CONNECT_TEXT:Lnet/minecraft/text/Text;
    • INCOMPATIBLE_TEXT

      private static final Text INCOMPATIBLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official u Ldxs;u:Loi;
      intermediary field_26849 Lnet/minecraft/class_4267;field_26849:Lnet/minecraft/class_2561;
      named INCOMPATIBLE_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;INCOMPATIBLE_TEXT:Lnet/minecraft/text/Text;
    • NO_CONNECTION_TEXT

      private static final Text NO_CONNECTION_TEXT
      Mappings:
      Namespace Name Mixin selector
      official v Ldxs;v:Loi;
      intermediary field_26586 Lnet/minecraft/class_4267;field_26586:Lnet/minecraft/class_2561;
      named NO_CONNECTION_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;NO_CONNECTION_TEXT:Lnet/minecraft/text/Text;
    • PINGING_TEXT

      private static final Text PINGING_TEXT
      Mappings:
      Namespace Name Mixin selector
      official w Ldxs;w:Loi;
      intermediary field_26587 Lnet/minecraft/class_4267;field_26587:Lnet/minecraft/class_2561;
      named PINGING_TEXT Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;PINGING_TEXT:Lnet/minecraft/text/Text;
    • screen

      private final MultiplayerScreen screen
      Mappings:
      Namespace Name Mixin selector
      official x Ldxs;x:Ldxq;
      intermediary field_19108 Lnet/minecraft/class_4267;field_19108:Lnet/minecraft/class_500;
      named screen Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;
    • servers

      Mappings:
      Namespace Name Mixin selector
      official y Ldxs;y:Ljava/util/List;
      intermediary field_19109 Lnet/minecraft/class_4267;field_19109:Ljava/util/List;
      named servers Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;servers:Ljava/util/List;
    • scanningEntry

      private final MultiplayerServerListWidget.Entry scanningEntry
      Mappings:
      Namespace Name Mixin selector
      official z Ldxs;z:Ldxs$a;
      intermediary field_19110 Lnet/minecraft/class_4267;field_19110:Lnet/minecraft/class_4267$class_504;
      named scanningEntry Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;scanningEntry:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;
    • lanServers

      Mappings:
      Namespace Name Mixin selector
      official A Ldxs;A:Ljava/util/List;
      intermediary field_19111 Lnet/minecraft/class_4267;field_19111:Ljava/util/List;
      named lanServers Lnet/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)V
      intermediary <init> Lnet/minecraft/class_4267;<init>(Lnet/minecraft/class_500;Lnet/minecraft/class_310;IIIII)V
      named <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 C Ldxs;C()V
      intermediary method_20131 Lnet/minecraft/class_4267;method_20131()V
      named updateEntries Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;updateEntries()V
    • setSelected

      public void setSelected​(@Nullable MultiplayerServerListWidget.Entry entry)
      Overrides:
      setSelected in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official a Ldxs;a(Ldxs$a;)V
      intermediary method_20122 Lnet/minecraft/class_4267;method_20122(Lnet/minecraft/class_4267$class_504;)V
      named setSelected Lnet/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 in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to 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 a Ldst;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • moveSelection

      protected void moveSelection​(EntryListWidget.MoveDirection direction)
      Overrides:
      moveSelection in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official a Ldrq;a(Ldrq$b;)V
      intermediary method_25335 Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)V
      named moveSelection Lnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
    • setServers

      public void setServers​(ServerList servers)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxs;a(Leef;)V
      intermediary method_20125 Lnet/minecraft/class_4267;method_20125(Lnet/minecraft/class_641;)V
      named setServers Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setServers(Lnet/minecraft/client/option/ServerList;)V
    • setLanServers

      public void setLanServers​(List<LanServerInfo> lanServers)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxs;a(Ljava/util/List;)V
      intermediary method_20126 Lnet/minecraft/class_4267;method_20126(Ljava/util/List;)V
      named setLanServers Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;setLanServers(Ljava/util/List;)V
    • getScrollbarPositionX

      protected int getScrollbarPositionX()
      Overrides:
      getScrollbarPositionX in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official e Ldrq;e()I
      intermediary method_25329 Lnet/minecraft/class_350;method_25329()I
      named getScrollbarPositionX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official d Ldrq;d()I
      intermediary method_25322 Lnet/minecraft/class_350;method_25322()I
      named getRowWidth Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
    • isFocused

      protected boolean isFocused()
      Overrides:
      isFocused in class EntryListWidget<MultiplayerServerListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official b Ldrq;b()Z
      intermediary method_25316 Lnet/minecraft/class_350;method_25316()Z
      named isFocused Lnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z