Class MultiplayerServerListWidget.ServerEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget.Entry
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget.ServerEntry
- All Implemented Interfaces:
Element
- Enclosing class:
- MultiplayerServerListWidget
@Environment(CLIENT) public class MultiplayerServerListWidget.ServerEntry extends MultiplayerServerListWidget.Entry
- Mappings:
Namespace Name official dxs$d
intermediary net/minecraft/class_4267$class_4270
named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private NativeImageBackedTexture
icon
private Identifier
iconTextureId
private String
iconUri
private MultiplayerScreen
screen
private ServerInfo
server
private long
time
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerEntry(MultiplayerScreen screen, ServerInfo server)
-
Method Summary
Modifier and Type Method Description protected void
draw(MatrixStack matrices, int int2, int int3, Identifier identifier)
ServerInfo
getServer()
boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private boolean
method_20136()
private boolean
method_29979(String string)
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.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.void
saveFile()
private void
swapEntries(int i, int j)
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
screen
- Mappings:
Namespace Name Mixin selector official b
Ldxs$d;b:Ldxq;
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
- Mappings:
Namespace Name Mixin selector official c
Ldxs$d;c:Ldqk;
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
- Mappings:
Namespace Name Mixin selector official d
Ldxs$d;d:Leee;
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
- Mappings:
Namespace Name Mixin selector official e
Ldxs$d;e:Lwb;
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
- Mappings:
Namespace Name Mixin selector official f
Ldxs$d;f: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
- Mappings:
Namespace Name Mixin selector official g
Ldxs$d;g:Lerk;
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 h
Ldxs$d;h: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
-
-
Constructor Details
-
ServerEntry
- Mappings:
Namespace Name Mixin selector official <init>
Ldxs$d;<init>(Ldxs;Ldxq;Leee;)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
-
-
Method Details
-
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.- Specified by:
render
in classEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
- Parameters:
matrices
- the matrix stack used for renderingindex
- the index of the entryy
- the Y coordinate of the entryx
- the X coordinate of the entryentryWidth
- the width of the entryentryHeight
- the height of the entrymouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousehovered
- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official a
Ldrq$a;a(Ldlr;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
Ldxs$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
- Mappings:
Namespace Name Mixin selector official a
Ldxs$d;a(Ldlr;IILwb;)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
Ldxs$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
-
method_29979
- Mappings:
Namespace Name Mixin selector official a
Ldxs$d;a(Ljava/lang/String;)Z
intermediary method_29979
Lnet/minecraft/class_4267$class_4270;method_29979(Ljava/lang/String;)Z
named method_29979
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;method_29979(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 inGLFW
class.- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
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
-
swapEntries
private void swapEntries(int i, int j)- Mappings:
Namespace Name Mixin selector official a
Ldxs$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 inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldst;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
- Mappings:
Namespace Name Mixin selector official b
Ldxs$d;b()Leee;
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;
-