Class MultiplayerServerListWidget.ServerEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<MultiplayerServerListWidget.Entry>
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 named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntryintermediary net/minecraft/class_4267$class_4270official fqx$d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate @org.jetbrains.annotations.Nullable byte[]private static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final WorldIconprivate final MultiplayerScreenprivate final ServerInfoprivate @Nullable Identifierprivate longFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanvoidclose()protected voiddraw(DrawContext context, int x, int y, Identifier textureId) booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(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.voidsaveFile()private voidswapEntries(int i, int j) private voidupdate()private booleanuploadFavicon(@org.jetbrains.annotations.Nullable byte[] bytes) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocusedMethods 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
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods 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 named field_32387Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32387:Iintermediary field_32387Lnet/minecraft/class_4267$class_4270;field_32387:Iofficial bLfqx$d;b:I
-
field_32388
private static final int field_32388- See Also:
- Mappings:
Namespace Name Mixin selector named field_32388Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32388:Iintermediary field_32388Lnet/minecraft/class_4267$class_4270;field_32388:Iofficial cLfqx$d;c:I
-
field_47852
private static final int field_47852- See Also:
- Mappings:
Namespace Name Mixin selector named field_47852Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47852:Iintermediary field_47852Lnet/minecraft/class_4267$class_4270;field_47852:Iofficial dLfqx$d;d:I
-
field_47853
private static final int field_47853- See Also:
- Mappings:
Namespace Name Mixin selector named field_47853Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47853:Iintermediary field_47853Lnet/minecraft/class_4267$class_4270;field_47853:Iofficial eLfqx$d;e:I
-
field_47854
private static final int field_47854- See Also:
- Mappings:
Namespace Name Mixin selector named field_47854Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47854:Iintermediary field_47854Lnet/minecraft/class_4267$class_4270;field_47854:Iofficial fLfqx$d;f:I
-
screen
- Mappings:
Namespace Name Mixin selector named screenLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;intermediary field_19118Lnet/minecraft/class_4267$class_4270;field_19118:Lnet/minecraft/class_500;official gLfqx$d;g:Lfqt;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;client:Lnet/minecraft/client/MinecraftClient;intermediary field_19119Lnet/minecraft/class_4267$class_4270;field_19119:Lnet/minecraft/class_310;official hLfqx$d;h:Lfgo;
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;server:Lnet/minecraft/client/network/ServerInfo;intermediary field_19120Lnet/minecraft/class_4267$class_4270;field_19120:Lnet/minecraft/class_642;official iLfqx$d;i:Lfzt;
-
icon
- Mappings:
Namespace Name Mixin selector named iconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;intermediary field_19123Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_8573;official jLfqx$d;j:Lfnn;
-
favicon
- Mappings:
Namespace Name Mixin selector named faviconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;favicon:[Bintermediary field_42874Lnet/minecraft/class_4267$class_4270;field_42874:[Bofficial kLfqx$d;k:[B
-
time
private long time- Mappings:
Namespace Name Mixin selector named timeLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;time:Jintermediary field_19124Lnet/minecraft/class_4267$class_4270;field_19124:Jofficial lLfqx$d;l:J
-
playerListSummary
- Mappings:
Namespace Name Mixin selector named playerListSummaryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;playerListSummary:Ljava/util/List;intermediary field_47855Lnet/minecraft/class_4267$class_4270;field_47855:Ljava/util/List;official mLfqx$d;m:Ljava/util/List;
-
statusIconTexture
- Mappings:
Namespace Name Mixin selector named statusIconTextureLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusIconTexture:Lnet/minecraft/util/Identifier;intermediary field_47856Lnet/minecraft/class_4267$class_4270;field_47856:Lnet/minecraft/class_2960;official nLfqx$d;n:Lakr;
-
statusTooltipText
- Mappings:
Namespace Name Mixin selector named statusTooltipTextLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusTooltipText:Lnet/minecraft/text/Text;intermediary field_47857Lnet/minecraft/class_4267$class_4270;field_47857:Lnet/minecraft/class_2561;official oLfqx$d;o:Lwz;
-
-
Constructor Details
-
ServerEntry
- Mappings:
Namespace Name Mixin selector 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;)Vintermediary <init>Lnet/minecraft/class_4267$class_4270;<init>(Lnet/minecraft/class_4267;Lnet/minecraft/class_500;Lnet/minecraft/class_642;)Vofficial <init>Lfqx$d;<init>(Lfqx;Lfqt;Lfzt;)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:
renderin 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 named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vofficial aLfih$a;a(Lfhz;IIIIIIIZF)V
-
update
private void update()- Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;update()Vintermediary method_55815Lnet/minecraft/class_4267$class_4270;method_55815()Vofficial dLfqx$d;d()V
-
saveFile
public void saveFile()- Mappings:
Namespace Name Mixin selector named saveFileLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;saveFile()Vintermediary method_29978Lnet/minecraft/class_4267$class_4270;method_29978()Vofficial bLfqx$d;b()V
-
draw
- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;draw(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/util/Identifier;)Vintermediary method_20134Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)Vofficial aLfqx$d;a(Lfhz;IILakr;)V
-
canConnect
private boolean canConnect()- Mappings:
Namespace Name Mixin selector named canConnectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;canConnect()Zintermediary method_20136Lnet/minecraft/class_4267$class_4270;method_20136()Zofficial eLfqx$d;e()Z
-
uploadFavicon
- Mappings:
Namespace Name Mixin selector named uploadFaviconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;uploadFavicon([B)Zintermediary method_49300Lnet/minecraft/class_4267$class_4270;method_49300([B)Zofficial aLfqx$d;a([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 inGLFWclass.- 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:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfki;a(III)Z
-
swapEntries
private void swapEntries(int i, int j) - Mappings:
Namespace Name Mixin selector named swapEntriesLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;swapEntries(II)Vintermediary method_22110Lnet/minecraft/class_4267$class_4270;method_22110(II)Vofficial aLfqx$d;a(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 inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classAlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfki;a(DDI)Z
-
getServer
- Mappings:
Namespace Name Mixin selector named getServerLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;getServer()Lnet/minecraft/client/network/ServerInfo;intermediary method_20133Lnet/minecraft/class_4267$class_4270;method_20133()Lnet/minecraft/class_642;official cLfqx$d;c()Lfzt;
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;official aLfji$a;a()Lwz;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMultiplayerServerListWidget.Entry
-