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,Widget
- 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 gok$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 IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
PADDING -
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.(package private) booleanvoidbooleanmouseClicked(double mouseX, double mouseY, int button, boolean doubleClick) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks) 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
forEachChild, getContentBottomEnd, getContentHeight, getContentMiddleX, getContentMiddleY, getContentRightEnd, getContentWidth, getContentX, getContentY, getHeight, getNavigationFocus, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setYMethods 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, getBorder, getFocusedPath, getNavigationPath, keyReleased, method_72784, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
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 bLgok$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 cLgok$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 dLgok$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 eLgok$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 fLgok$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 hLgok$d;h:Lgoh;
-
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 iLgok$d;i:Lfyp;
-
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 jLgok$d;j:Lgyf;
-
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 kLgok$d;k:Lgkg;
-
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 lLgok$d;l:[B
-
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 mLgok$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 nLgok$d;n:Lamw;
-
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 oLgok$d;o:Lxv;
-
-
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>Lgok$d;<init>(Lgok;Lgoh;Lgyf;)V
-
-
Method Details
-
render
Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<MultiplayerServerListWidget.Entry>- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)Vofficial aLgbv$a;a(Lgbp;IIZF)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 fLgok$d;f()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 cLgok$d;c()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 aLgok$d;a(Lgbp;IILamw;)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 tLgok$d;t()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 aLgok$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 aLgfi;a(III)Z
-
method_74043
public void method_74043()- Specified by:
method_74043in classMultiplayerServerListWidget.Entry- Mappings:
Namespace Name Mixin selector named method_74043Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;method_74043()Vintermediary method_74043Lnet/minecraft/class_4267$class_504;method_74043()Vofficial bLgok$a;b()V
-
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 aLgok$d;a(II)V
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button, boolean doubleClick) 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(DDIZ)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDIZ)Zofficial aLgfi;a(DDIZ)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 eLgok$d;e()Lgyf;
-
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 aLgcy$a;a()Lxv;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMultiplayerServerListWidget.Entry
-
method_73436
- Specified by:
method_73436in classMultiplayerServerListWidget.Entry- Mappings:
Namespace Name Mixin selector named method_73436Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;method_73436(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;)Zintermediary method_73436Lnet/minecraft/class_4267$class_504;method_73436(Lnet/minecraft/class_4267$class_504;)Zofficial aLgok$a;a(Lgok$a;)Z
-