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$ServerEntry- intermediary - net/minecraft/class_4267$class_4270- official - fxg$d
- 
Field SummaryFieldsModifier 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.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.EntryappendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.EntrydrawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, getNavigationFocus, getNavigationPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrder
- 
Field Details- 
field_32387private static final int field_32387- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_32387- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32387:I- intermediary - field_32387- Lnet/minecraft/class_4267$class_4270;field_32387:I- official - b- Lfxg$d;b:I
 
- 
field_32388private static final int field_32388- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_32388- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32388:I- intermediary - field_32388- Lnet/minecraft/class_4267$class_4270;field_32388:I- official - c- Lfxg$d;c:I
 
- 
field_47852private static final int field_47852- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_47852- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47852:I- intermediary - field_47852- Lnet/minecraft/class_4267$class_4270;field_47852:I- official - d- Lfxg$d;d:I
 
- 
field_47853private static final int field_47853- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_47853- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47853:I- intermediary - field_47853- Lnet/minecraft/class_4267$class_4270;field_47853:I- official - e- Lfxg$d;e:I
 
- 
field_47854private static final int field_47854- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_47854- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47854:I- intermediary - field_47854- Lnet/minecraft/class_4267$class_4270;field_47854:I- official - f- Lfxg$d;f:I
 
- 
screen- Mappings:
- Namespace - Name - Mixin selector - named - screen- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;- intermediary - field_19118- Lnet/minecraft/class_4267$class_4270;field_19118:Lnet/minecraft/class_500;- official - g- Lfxg$d;g:Lfxc;
 
- 
client- Mappings:
- Namespace - Name - Mixin selector - named - client- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;client:Lnet/minecraft/client/MinecraftClient;- intermediary - field_19119- Lnet/minecraft/class_4267$class_4270;field_19119:Lnet/minecraft/class_310;- official - h- Lfxg$d;h:Lflk;
 
- 
server- Mappings:
- Namespace - Name - Mixin selector - named - server- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;server:Lnet/minecraft/client/network/ServerInfo;- intermediary - field_19120- Lnet/minecraft/class_4267$class_4270;field_19120:Lnet/minecraft/class_642;- official - i- Lfxg$d;i:Lggp;
 
- 
icon- Mappings:
- Namespace - Name - Mixin selector - named - icon- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;- intermediary - field_19123- Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_8573;- official - j- Lfxg$d;j:Lftw;
 
- 
favicon- Mappings:
- Namespace - Name - Mixin selector - named - favicon- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;favicon:[B- intermediary - field_42874- Lnet/minecraft/class_4267$class_4270;field_42874:[B- official - k- Lfxg$d;k:[B
 
- 
timeprivate long time- Mappings:
- Namespace - Name - Mixin selector - named - time- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;time:J- intermediary - field_19124- Lnet/minecraft/class_4267$class_4270;field_19124:J- official - l- Lfxg$d;l:J
 
- 
playerListSummary- Mappings:
- Namespace - Name - Mixin selector - named - playerListSummary- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;playerListSummary:Ljava/util/List;- intermediary - field_47855- Lnet/minecraft/class_4267$class_4270;field_47855:Ljava/util/List;- official - m- Lfxg$d;m:Ljava/util/List;
 
- 
statusIconTexture- Mappings:
- Namespace - Name - Mixin selector - named - statusIconTexture- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusIconTexture:Lnet/minecraft/util/Identifier;- intermediary - field_47856- Lnet/minecraft/class_4267$class_4270;field_47856:Lnet/minecraft/class_2960;- official - n- Lfxg$d;n:Lakv;
 
- 
statusTooltipText- Mappings:
- Namespace - Name - Mixin selector - named - statusTooltipText- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusTooltipText:Lnet/minecraft/text/Text;- intermediary - field_47857- Lnet/minecraft/class_4267$class_4270;field_47857:Lnet/minecraft/class_2561;- official - o- Lfxg$d;o:Lwp;
 
 
- 
- 
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;)V- intermediary - <init>- Lnet/minecraft/class_4267$class_4270;<init>(Lnet/minecraft/class_4267;Lnet/minecraft/class_500;Lnet/minecraft/class_642;)V- official - <init>- Lfxg$d;<init>(Lfxg;Lfxc;Lggp;)V
 
 
- 
- 
Method Details- 
renderpublic 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 class- EntryListWidget.Entry<MultiplayerServerListWidget.Entry>
- Parameters:
- 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 - named - render- Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V- intermediary - method_25343- Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V- official - a- Lfon$a;a(Lfof;IIIIIIIZF)V
 
- 
updateprivate void update()- Mappings:
- Namespace - Name - Mixin selector - named - update- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;update()V- intermediary - method_55815- Lnet/minecraft/class_4267$class_4270;method_55815()V- official - d- Lfxg$d;d()V
 
- 
saveFilepublic void saveFile()- Mappings:
- Namespace - Name - Mixin selector - named - saveFile- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;saveFile()V- intermediary - method_29978- Lnet/minecraft/class_4267$class_4270;method_29978()V- official - b- Lfxg$d;b()V
 
- 
draw- Mappings:
- Namespace - Name - Mixin selector - named - draw- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;draw(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/util/Identifier;)V- intermediary - method_20134- Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)V- official - a- Lfxg$d;a(Lfof;IILakv;)V
 
- 
canConnectprivate boolean canConnect()- Mappings:
- Namespace - Name - Mixin selector - named - canConnect- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;canConnect()Z- intermediary - method_20136- Lnet/minecraft/class_4267$class_4270;method_20136()Z- official - e- Lfxg$d;e()Z
 
- 
uploadFavicon- Mappings:
- Namespace - Name - Mixin selector - named - uploadFavicon- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;uploadFavicon([B)Z- intermediary - method_49300- Lnet/minecraft/class_4267$class_4270;method_49300([B)Z- official - a- Lfxg$d;a([B)Z
 
- 
keyPressedpublic 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 the- GLFWclass
- 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:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- official - a- Lfqr;a(III)Z
 
- 
swapEntriesprivate void swapEntries(int i, int j) - Mappings:
- Namespace - Name - Mixin selector - named - swapEntries- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;swapEntries(II)V- intermediary - method_22110- Lnet/minecraft/class_4267$class_4270;method_22110(II)V- official - a- Lfxg$d;a(II)V
 
- 
mouseClickedpublic 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 interface- Element
- Overrides:
- mouseClickedin class- AlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- official - a- Lfqr;a(DDI)Z
 
- 
getServer- Mappings:
- Namespace - Name - Mixin selector - named - getServer- Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;getServer()Lnet/minecraft/client/network/ServerInfo;- intermediary - method_20133- Lnet/minecraft/class_4267$class_4270;method_20133()Lnet/minecraft/class_642;- official - c- Lfxg$d;c()Lggp;
 
- 
getNarration- Specified by:
- getNarrationin class- AlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - named - getNarration- Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;- intermediary - method_37006- Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;- official - a- Lfpq$a;a()Lwp;
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Overrides:
- closein class- MultiplayerServerListWidget.Entry
 
 
-