类 MultiplayerServerListWidget.ServerEntry

    • 字段详细资料

      • field_32387

        private static final int field_32387
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lebt$d;b:I
        intermediary field_32387 Lnet/minecraft/class_4267$class_4270;field_32387:I
        named field_32387 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32387:I
      • field_32388

        private static final int field_32388
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lebt$d;c:I
        intermediary field_32388 Lnet/minecraft/class_4267$class_4270;field_32388:I
        named field_32388 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32388:I
      • field_32389

        private static final int field_32389
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lebt$d;d:I
        intermediary field_32389 Lnet/minecraft/class_4267$class_4270;field_32389:I
        named field_32389 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32389:I
      • field_32390

        private static final int field_32390
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lebt$d;e:I
        intermediary field_32390 Lnet/minecraft/class_4267$class_4270;field_32390:I
        named field_32390 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32390:I
      • field_32391

        private static final int field_32391
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lebt$d;f:I
        intermediary field_32391 Lnet/minecraft/class_4267$class_4270;field_32391:I
        named field_32391 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32391:I
      • field_32392

        private static final int field_32392
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official g Lebt$d;g:I
        intermediary field_32392 Lnet/minecraft/class_4267$class_4270;field_32392:I
        named field_32392 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32392:I
      • field_32393

        private static final int field_32393
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official h Lebt$d;h:I
        intermediary field_32393 Lnet/minecraft/class_4267$class_4270;field_32393:I
        named field_32393 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32393:I
      • field_32394

        private static final int field_32394
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Lebt$d;i:I
        intermediary field_32394 Lnet/minecraft/class_4267$class_4270;field_32394:I
        named field_32394 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32394:I
      • screen

        private final MultiplayerScreen screen
        Mappings:
        Namespace Name Mixin selector
        official j Lebt$d;j:Lebr;
        intermediary field_19118 Lnet/minecraft/class_4267$class_4270;field_19118:Lnet/minecraft/class_500;
        named screen Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;
      • client

        private final MinecraftClient client
        Mappings:
        Namespace Name Mixin selector
        official k Lebt$d;k:Ldum;
        intermediary field_19119 Lnet/minecraft/class_4267$class_4270;field_19119:Lnet/minecraft/class_310;
        named client Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;client:Lnet/minecraft/client/MinecraftClient;
      • server

        private final ServerInfo server
        Mappings:
        Namespace Name Mixin selector
        official l Lebt$d;l:Leid;
        intermediary field_19120 Lnet/minecraft/class_4267$class_4270;field_19120:Lnet/minecraft/class_642;
        named server Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;server:Lnet/minecraft/client/network/ServerInfo;
      • iconTextureId

        private final Identifier iconTextureId
        Mappings:
        Namespace Name Mixin selector
        official m Lebt$d;m:Lwp;
        intermediary field_19121 Lnet/minecraft/class_4267$class_4270;field_19121:Lnet/minecraft/class_2960;
        named iconTextureId Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;iconTextureId:Lnet/minecraft/util/Identifier;
      • iconUri

        private String iconUri
        Mappings:
        Namespace Name Mixin selector
        official n Lebt$d;n:Ljava/lang/String;
        intermediary field_19122 Lnet/minecraft/class_4267$class_4270;field_19122:Ljava/lang/String;
        named iconUri Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;iconUri:Ljava/lang/String;
      • icon

        @Nullable
        private @Nullable NativeImageBackedTexture icon
        Mappings:
        Namespace Name Mixin selector
        official o Lebt$d;o:Levt;
        intermediary field_19123 Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_1043;
        named icon Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/texture/NativeImageBackedTexture;
      • time

        private long time
        Mappings:
        Namespace Name Mixin selector
        official p Lebt$d;p:J
        intermediary field_19124 Lnet/minecraft/class_4267$class_4270;field_19124:J
        named time Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;time:J
    • 构造器详细资料

      • ServerEntry

        protected ServerEntry​(MultiplayerScreen screen,
                              ServerInfo server)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lebt$d;<init>(Lebt;Lebr;Leid;)V
        intermediary <init> Lnet/minecraft/class_4267$class_4270;<init>(Lnet/minecraft/class_4267;Lnet/minecraft/class_500;Lnet/minecraft/class_642;)V
        named <init> Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;<init>(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;Lnet/minecraft/client/network/ServerInfo;)V
    • 方法详细资料

      • render

        public void render​(MatrixStack matrices,
                           int index,
                           int y,
                           int x,
                           int entryWidth,
                           int entryHeight,
                           int mouseX,
                           int mouseY,
                           boolean hovered,
                           float tickDelta)
        Renders an entry in a list.
        指定者:
        render 在类中 EntryListWidget.Entry<MultiplayerServerListWidget.Entry>
        参数:
        matrices - the matrix stack used for rendering
        index - the index of the entry
        y - the Y coordinate of the entry
        x - the X coordinate of the entry
        entryWidth - the width of the entry
        entryHeight - the height of the entry
        mouseX - the X coordinate of the mouse
        mouseY - the Y coordinate of the mouse
        hovered - whether the mouse is hovering over the entry
        Mappings:
        Namespace Name Mixin selector
        official a Ldvs$a;a(Ldpi;IIIIIIIZF)V
        intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)V
        named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
      • saveFile

        public void saveFile()
        Mappings:
        Namespace Name Mixin selector
        official a Lebt$d;a()V
        intermediary method_29978 Lnet/minecraft/class_4267$class_4270;method_29978()V
        named saveFile Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;saveFile()V
      • draw

        protected void draw​(MatrixStack matrices,
                            int x,
                            int y,
                            Identifier textureId)
        Mappings:
        Namespace Name Mixin selector
        official a Lebt$d;a(Ldpi;IILwp;)V
        intermediary method_20134 Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_4587;IILnet/minecraft/class_2960;)V
        named draw Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;draw(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/util/Identifier;)V
      • method_20136

        private boolean method_20136()
        Mappings:
        Namespace Name Mixin selector
        official c Lebt$d;c()Z
        intermediary method_20136 Lnet/minecraft/class_4267$class_4270;method_20136()Z
        named method_20136 Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;method_20136()Z
      • isNewIconValid

        private boolean isNewIconValid​(@Nullable
                                       @Nullable String newIconUri)
        Mappings:
        Namespace Name Mixin selector
        official a Lebt$d;a(Ljava/lang/String;)Z
        intermediary method_29979 Lnet/minecraft/class_4267$class_4270;method_29979(Ljava/lang/String;)Z
        named isNewIconValid Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;isNewIconValid(Ljava/lang/String;)Z
      • 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.
        参数:
        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)
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        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 Ldwv;a(III)Z
        intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
        named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      • swapEntries

        private void swapEntries​(int i,
                                 int j)
        Mappings:
        Namespace Name Mixin selector
        official a Lebt$d;a(II)V
        intermediary method_22110 Lnet/minecraft/class_4267$class_4270;method_22110(II)V
        named swapEntries Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;swapEntries(II)V
      • mouseClicked

        public boolean mouseClicked​(double mouseX,
                                    double mouseY,
                                    int button)
        Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
        参数:
        mouseX - the X coordinate of the mouse
        mouseY - the Y coordinate of the mouse
        button - the mouse button number
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
        Mappings:
        Namespace Name Mixin selector
        official a Ldwv;a(DDI)Z
        intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
        named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      • getServer

        public ServerInfo getServer()
        Mappings:
        Namespace Name Mixin selector
        official b Lebt$d;b()Leid;
        intermediary method_20133 Lnet/minecraft/class_4267$class_4270;method_20133()Lnet/minecraft/class_642;
        named getServer Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;getServer()Lnet/minecraft/client/network/ServerInfo;