Class MultiplayerServerListWidget.LanServerEntry
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.LanServerEntry
- All Implemented Interfaces:
AutoCloseable,Element,Narratable,Navigable,Widget
- Enclosing class:
MultiplayerServerListWidget
@Environment(CLIENT)
public static class MultiplayerServerListWidget.LanServerEntry
extends MultiplayerServerListWidget.Entry
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntryintermediary net/minecraft/class_4267$class_4269official gok$c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MinecraftClientprivate static final intprivate static final Textprivate final MultiplayerScreenprotected final LanServerInfoprivate static final TextFields inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
PADDING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLanServerEntry(MultiplayerScreen screen, LanServerInfo server) -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyPressed(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.Methods inherited from class net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget.Entry
closeMethods 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_32386
private static final int field_32386- See Also:
- Mappings:
Namespace Name Mixin selector named field_32386Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;field_32386:Iintermediary field_32386Lnet/minecraft/class_4267$class_4269;field_32386:Iofficial cLgok$c;c:I
-
TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named TITLE_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;TITLE_TEXT:Lnet/minecraft/text/Text;intermediary field_26588Lnet/minecraft/class_4267$class_4269;field_26588:Lnet/minecraft/class_2561;official dLgok$c;d:Lxv;
-
HIDDEN_ADDRESS_TEXT
- Mappings:
Namespace Name Mixin selector named HIDDEN_ADDRESS_TEXTLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;HIDDEN_ADDRESS_TEXT:Lnet/minecraft/text/Text;intermediary field_26589Lnet/minecraft/class_4267$class_4269;field_26589:Lnet/minecraft/class_2561;official eLgok$c;e:Lxv;
-
screen
- Mappings:
Namespace Name Mixin selector named screenLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;screen:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;intermediary field_19115Lnet/minecraft/class_4267$class_4269;field_19115:Lnet/minecraft/class_500;official fLgok$c;f:Lgoh;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;client:Lnet/minecraft/client/MinecraftClient;intermediary field_19113Lnet/minecraft/class_4267$class_4269;field_19113:Lnet/minecraft/class_310;official aLgok$c;a:Lfyp;
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;server:Lnet/minecraft/client/network/LanServerInfo;intermediary field_19114Lnet/minecraft/class_4267$class_4269;field_19114:Lnet/minecraft/class_1131;official bLgok$c;b:Lido;
-
-
Constructor Details
-
LanServerEntry
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;<init>(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;Lnet/minecraft/client/network/LanServerInfo;)Vintermediary <init>Lnet/minecraft/class_4267$class_4269;<init>(Lnet/minecraft/class_500;Lnet/minecraft/class_1131;)Vofficial <init>Lgok$c;<init>(Lgoh;Lido;)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
-
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
-
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
-
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;
-
getMotdNarration
- Mappings:
Namespace Name Mixin selector named getMotdNarrationLnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$LanServerEntry;getMotdNarration()Lnet/minecraft/text/Text;intermediary method_48273Lnet/minecraft/class_4267$class_4269;method_48273()Lnet/minecraft/class_2561;official cLgok$c;c()Lxv;
-
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
-