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:
AutoCloseable
,Element
,Narratable
,Navigable
- Enclosing class:
MultiplayerServerListWidget
@Environment(CLIENT)
public class MultiplayerServerListWidget.ServerEntry
extends MultiplayerServerListWidget.Entry
- Mappings:
Namespace Name official exq$d
intermediary net/minecraft/class_4267$class_4270
named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinecraftClient
private @org.jetbrains.annotations.Nullable byte[]
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final WorldIcon
private final MultiplayerScreen
private final ServerInfo
private long
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
void
close()
protected void
draw
(DrawContext context, int x, int y, Identifier textureId) boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.private boolean
pinged()
private boolean
void
render
(DrawContext context, 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) private boolean
uploadFavicon
(@org.jetbrains.annotations.Nullable byte[] bytes) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrations
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocused
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, getFocusedPath, getNavigationFocus, getNavigationPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
field_32387
private static final int field_32387- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lexq$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- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lexq$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
- Mappings:
Namespace Name Mixin selector official j
Lexq$d;j:Lexn;
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 k
Lexq$d;k:Lenn;
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 l
Lexq$d;l:Lffd;
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;
-
icon
- Mappings:
Namespace Name Mixin selector official m
Lexq$d;m:Letw;
intermediary field_19123
Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_8573;
named icon
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;
-
favicon
- Mappings:
Namespace Name Mixin selector official n
Lexq$d;n:[B
intermediary field_42874
Lnet/minecraft/class_4267$class_4270;field_42874:[B
named favicon
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;favicon:[B
-
time
private long time- Mappings:
Namespace Name Mixin selector official o
Lexq$d;o: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>
Lexq$d;<init>(Lexq;Lexn;Lffd;)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(DrawContext context, 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:
index
- 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
Lepc$a;a(Leox;IIIIIIIZF)V
intermediary method_25343
Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V
named render
Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
-
pinged
private boolean pinged()- Mappings:
Namespace Name Mixin selector official e
Lexq$d;e()Z
intermediary method_48274
Lnet/minecraft/class_4267$class_4270;method_48274()Z
named pinged
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;pinged()Z
-
protocolVersionMatches
private boolean protocolVersionMatches()- Mappings:
Namespace Name Mixin selector official f
Lexq$d;f()Z
intermediary method_48275
Lnet/minecraft/class_4267$class_4270;method_48275()Z
named protocolVersionMatches
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;protocolVersionMatches()Z
-
saveFile
public void saveFile()- Mappings:
Namespace Name Mixin selector official b
Lexq$d;b()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
Lexq$d;a(Leox;IILacq;)V
intermediary method_20134
Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)V
named draw
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;draw(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/util/Identifier;)V
-
canConnect
private boolean canConnect()- Mappings:
Namespace Name Mixin selector official g
Lexq$d;g()Z
intermediary method_20136
Lnet/minecraft/class_4267$class_4270;method_20136()Z
named canConnect
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;canConnect()Z
-
uploadFavicon
- Mappings:
Namespace Name Mixin selector official a
Lexq$d;a([B)Z
intermediary method_49300
Lnet/minecraft/class_4267$class_4270;method_49300([B)Z
named uploadFavicon
Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;uploadFavicon([B)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:
- Mappings:
Namespace Name Mixin selector official a
Leqt;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
Lexq$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:
- Mappings:
Namespace Name Mixin selector official a
Leqt;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 d
Lexq$d;d()Lffd;
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;
-
getNarration
- Specified by:
getNarration
in classAlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Leqc$a;a()Lsw;
intermediary method_37006
Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
named getNarration
Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classMultiplayerServerListWidget.Entry
-