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:
Element,Narratable
- Enclosing class:
MultiplayerServerListWidget
@Environment(CLIENT)
public class MultiplayerServerListWidget.ServerEntry
extends MultiplayerServerListWidget.Entry
- Mappings:
Namespace Name official enb$dintermediary net/minecraft/class_4267$class_4270named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate @Nullable NativeImageBackedTextureprivate final Identifierprivate final MultiplayerScreenprivate final ServerInfoprivate longFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprotected voiddraw(MatrixStack matrices, int x, int y, Identifier textureId) private booleanisNewIconValid(@Nullable String newIconUri) 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(MatrixStack matrices, 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) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrations, changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOverMethods 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, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
field_32387
private static final int field_32387- See Also:
- Mappings:
Namespace Name Mixin selector official bLenb$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 cLenb$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_32389
private static final int field_32389- See Also:
- Mappings:
Namespace Name Mixin selector official dLenb$d;d:Iintermediary field_32389Lnet/minecraft/class_4267$class_4270;field_32389:Inamed field_32389Lnet/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 eLenb$d;e:Iintermediary field_32390Lnet/minecraft/class_4267$class_4270;field_32390:Inamed field_32390Lnet/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 fLenb$d;f:Iintermediary field_32391Lnet/minecraft/class_4267$class_4270;field_32391:Inamed field_32391Lnet/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 hLenb$d;h:Iintermediary field_32392Lnet/minecraft/class_4267$class_4270;field_32392:Inamed field_32392Lnet/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 iLenb$d;i:Iintermediary field_32393Lnet/minecraft/class_4267$class_4270;field_32393:Inamed field_32393Lnet/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 jLenb$d;j:Iintermediary field_32394Lnet/minecraft/class_4267$class_4270;field_32394:Inamed field_32394Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;field_32394:I
-
screen
- Mappings:
Namespace Name Mixin selector official kLenb$d;k:Lemy;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 lLenb$d;l:Leev;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 mLenb$d;m:Lets;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;
-
iconTextureId
- Mappings:
Namespace Name Mixin selector official nLenb$d;n:Laaj;intermediary field_19121Lnet/minecraft/class_4267$class_4270;field_19121:Lnet/minecraft/class_2960;named iconTextureIdLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;iconTextureId:Lnet/minecraft/util/Identifier;
-
iconUri
- Mappings:
Namespace Name Mixin selector official oLenb$d;o:Ljava/lang/String;intermediary field_19122Lnet/minecraft/class_4267$class_4270;field_19122:Ljava/lang/String;named iconUriLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;iconUri:Ljava/lang/String;
-
icon
- Mappings:
Namespace Name Mixin selector official pLenb$d;p:Lfhw;intermediary field_19123Lnet/minecraft/class_4267$class_4270;field_19123:Lnet/minecraft/class_1043;named iconLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;icon:Lnet/minecraft/client/texture/NativeImageBackedTexture;
-
time
private long time- Mappings:
Namespace Name Mixin selector official qLenb$d;q:Jintermediary field_19124Lnet/minecraft/class_4267$class_4270;field_19124:Jnamed timeLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;time:J
-
-
Constructor Details
-
ServerEntry
- Mappings:
Namespace Name Mixin selector official <init>Lenb$d;<init>(Lenb;Lemy;Lets;)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(MatrixStack matrices, 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:
matrices- the matrix stack used for renderingindex- 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 aLego$a;a(Ldzt;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
saveFile
public void saveFile()- Mappings:
Namespace Name Mixin selector official aLenb$d;a()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 aLenb$d;a(Ldzt;IILaaj;)Vintermediary method_20134Lnet/minecraft/class_4267$class_4270;method_20134(Lnet/minecraft/class_4587;IILnet/minecraft/class_2960;)Vnamed drawLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;draw(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/util/Identifier;)V
-
canConnect
private boolean canConnect()- Mappings:
Namespace Name Mixin selector official dLenb$d;d()Zintermediary method_20136Lnet/minecraft/class_4267$class_4270;method_20136()Znamed canConnectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;canConnect()Z
-
isNewIconValid
- Mappings:
Namespace Name Mixin selector official aLenb$d;a(Ljava/lang/String;)Zintermediary method_29979Lnet/minecraft/class_4267$class_4270;method_29979(Ljava/lang/String;)Znamed isNewIconValidLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$ServerEntry;isNewIconValid(Ljava/lang/String;)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 aLehq;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 aLenb$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 aLehq;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 cLenb$d;c()Lets;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 bLehf$a;b()Lrm;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;
-