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 official fkj$dintermediary net/minecraft/class_4267$class_4270named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry
-
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 official bLfkj$d;b:Iintermediary field_32387Lnet/minecraft/class_4267$class_4270;field_32387:Inamed field_32387Lnet/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 cLfkj$d;c:Iintermediary field_32388Lnet/minecraft/class_4267$class_4270;field_32388:Inamed field_32388Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32388:I
-
field_47852
private static final int field_47852- See Also:
- Mappings:
Namespace Name Mixin selector official dLfkj$d;d:Iintermediary field_47852Lnet/minecraft/class_4267$class_4270;field_47852:Inamed field_47852Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47852:I
-
field_47853
private static final int field_47853- See Also:
- Mappings:
Namespace Name Mixin selector official eLfkj$d;e:Iintermediary field_47853Lnet/minecraft/class_4267$class_4270;field_47853:Inamed field_47853Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47853:I
-
field_47854
private static final int field_47854- See Also:
- Mappings:
Namespace Name Mixin selector official fLfkj$d;f:Iintermediary field_47854Lnet/minecraft/class_4267$class_4270;field_47854:Inamed field_47854Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_47854:I
-
screen
- Mappings:
Namespace Name Mixin selector official gLfkj$d;g:Lfkf;intermediary field_19118Lnet/minecraft/class_4267$class_4270;field_19118:Lnet/minecraft/class_500;named screenLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;
-
client
- Mappings:
Namespace Name Mixin selector official hLfkj$d;h:Lezi;intermediary field_19119Lnet/minecraft/class_4267$class_4270;field_19119:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;client:Lnet/minecraft/client/MinecraftClient;
-
server
- Mappings:
Namespace Name Mixin selector official iLfkj$d;i:Lfso;intermediary field_19120Lnet/minecraft/class_4267$class_4270;field_19120:Lnet/minecraft/class_642;named serverLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;server:Lnet/minecraft/client/network/ServerInfo;
-
icon
- Mappings:
Namespace Name Mixin selector official jLfkj$d;j:Lfgl;intermediary field_19123Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_8573;named iconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;
-
favicon
- Mappings:
Namespace Name Mixin selector official kLfkj$d;k:[Bintermediary field_42874Lnet/minecraft/class_4267$class_4270;field_42874:[Bnamed faviconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;favicon:[B
-
time
private long time- Mappings:
Namespace Name Mixin selector official lLfkj$d;l:Jintermediary field_19124Lnet/minecraft/class_4267$class_4270;field_19124:Jnamed timeLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;time:J
-
playerListSummary
- Mappings:
Namespace Name Mixin selector official mLfkj$d;m:Ljava/util/List;intermediary field_47855Lnet/minecraft/class_4267$class_4270;field_47855:Ljava/util/List;named playerListSummaryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;playerListSummary:Ljava/util/List;
-
statusIconTexture
- Mappings:
Namespace Name Mixin selector official nLfkj$d;n:Lajh;intermediary field_47856Lnet/minecraft/class_4267$class_4270;field_47856:Lnet/minecraft/class_2960;named statusIconTextureLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusIconTexture:Lnet/minecraft/util/Identifier;
-
statusTooltipText
- Mappings:
Namespace Name Mixin selector official oLfkj$d;o:Lvu;intermediary field_47857Lnet/minecraft/class_4267$class_4270;field_47857:Lnet/minecraft/class_2561;named statusTooltipTextLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;statusTooltipText:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ServerEntry
- Mappings:
Namespace Name Mixin selector official <init>Lfkj$d;<init>(Lfkj;Lfkf;Lfso;)Vintermediary <init>Lnet/minecraft/class_4267$class_4270;<init>(Lnet/minecraft/class_4267;Lnet/minecraft/class_500;Lnet/minecraft/class_642;)Vnamed <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:
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 official aLfbd$a;a(Lfav;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
-
update
private void update()- Mappings:
Namespace Name Mixin selector official dLfkj$d;d()Vintermediary method_55815Lnet/minecraft/class_4267$class_4270;method_55815()Vnamed updateLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;update()V
-
saveFile
public void saveFile()- Mappings:
Namespace Name Mixin selector official bLfkj$d;b()Vintermediary method_29978Lnet/minecraft/class_4267$class_4270;method_29978()Vnamed saveFileLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;saveFile()V
-
draw
- Mappings:
Namespace Name Mixin selector official aLfkj$d;a(Lfav;IILajh;)Vintermediary method_20134Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)Vnamed drawLnet/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 eLfkj$d;e()Zintermediary method_20136Lnet/minecraft/class_4267$class_4270;method_20136()Znamed canConnectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;canConnect()Z
-
uploadFavicon
- Mappings:
Namespace Name Mixin selector official aLfkj$d;a([B)Zintermediary method_49300Lnet/minecraft/class_4267$class_4270;method_49300([B)Znamed uploadFaviconLnet/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 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 official aLfde;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
swapEntries
private void swapEntries(int i, int j) - Mappings:
Namespace Name Mixin selector official aLfkj$d;a(II)Vintermediary method_22110Lnet/minecraft/class_4267$class_4270;method_22110(II)Vnamed swapEntriesLnet/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 inGLFWclass.- 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 official aLfde;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
getServer
- Mappings:
Namespace Name Mixin selector official cLfkj$d;c()Lfso;intermediary method_20133Lnet/minecraft/class_4267$class_4270;method_20133()Lnet/minecraft/class_642;named getServerLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;getServer()Lnet/minecraft/client/network/ServerInfo;
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLfce$a;a()Lvu;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMultiplayerServerListWidget.Entry
-