Class MultiplayerScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class MultiplayerScreen extends Screen
- Mappings:
Namespace Name official ebrintermediary net/minecraft/class_500named net/minecraft/client/gui/screen/multiplayer/MultiplayerScreen
-
Field Summary
Fields Modifier and Type Field Description private ButtonWidgetbuttonDeleteprivate ButtonWidgetbuttonEditprivate ButtonWidgetbuttonJoinprivate booleaninitializedprivate LanServerQueryManager.LanServerDetectorlanServerDetectorprivate LanServerQueryManager.LanServerEntryListlanServersprivate static LoggerLOGGERprivate Screenparentprivate ServerInfoselectedEntryprivate ServerListserverListprivate MultiplayerServerListPingerserverListPingerprotected MultiplayerServerListWidgetserverListWidgetprivate List<Text>tooltipTextFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description MultiplayerScreen(Screen parent) -
Method Summary
Modifier and Type Method Description private voidaddEntry(boolean confirmedAction)voidconnect()private voidconnect(ServerInfo entry)private voiddirectConnect(boolean confirmedAction)private voideditEntry(boolean confirmedAction)ServerListgetServerList()MultiplayerServerListPingergetServerListPinger()protected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private voidrefresh()voidremoved()private voidremoveEntry(boolean confirmedAction)voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidselect(MultiplayerServerListWidget.Entry entry)voidsetTooltip(List<Text> tooltipText)voidtick()protected voidupdateButtonActivationStates()Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffsetMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLebr;b:Lorg/apache/logging/log4j/Logger;intermediary field_3044Lnet/minecraft/class_500;field_3044:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
serverListPinger
- Mappings:
Namespace Name Mixin selector official cLebr;c:Leif;intermediary field_3037Lnet/minecraft/class_500;field_3037:Lnet/minecraft/class_644;named serverListPingerLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;serverListPinger:Lnet/minecraft/client/network/MultiplayerServerListPinger;
-
parent
- Mappings:
Namespace Name Mixin selector official pLebr;p:Ldzg;intermediary field_3049Lnet/minecraft/class_500;field_3049:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
serverListWidget
- Mappings:
Namespace Name Mixin selector official aLebr;a:Lebt;intermediary field_3043Lnet/minecraft/class_500;field_3043:Lnet/minecraft/class_4267;named serverListWidgetLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;serverListWidget:Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget;
-
serverList
- Mappings:
Namespace Name Mixin selector official qLebr;q:Leie;intermediary field_3040Lnet/minecraft/class_500;field_3040:Lnet/minecraft/class_641;named serverListLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;serverList:Lnet/minecraft/client/option/ServerList;
-
buttonEdit
- Mappings:
Namespace Name Mixin selector official rLebr;r:Ldvw;intermediary field_3041Lnet/minecraft/class_500;field_3041:Lnet/minecraft/class_4185;named buttonEditLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;buttonEdit:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonJoin
- Mappings:
Namespace Name Mixin selector official sLebr;s:Ldvw;intermediary field_3050Lnet/minecraft/class_500;field_3050:Lnet/minecraft/class_4185;named buttonJoinLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;buttonJoin:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonDelete
- Mappings:
Namespace Name Mixin selector official tLebr;t:Ldvw;intermediary field_3047Lnet/minecraft/class_500;field_3047:Lnet/minecraft/class_4185;named buttonDeleteLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;buttonDelete:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
tooltipText
- Mappings:
Namespace Name Mixin selector official uLebr;u:Ljava/util/List;intermediary field_3042Lnet/minecraft/class_500;field_3042:Ljava/util/List;named tooltipTextLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;tooltipText:Ljava/util/List;
-
selectedEntry
- Mappings:
Namespace Name Mixin selector official vLebr;v:Leid;intermediary field_3051Lnet/minecraft/class_500;field_3051:Lnet/minecraft/class_642;named selectedEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;selectedEntry:Lnet/minecraft/client/network/ServerInfo;
-
lanServers
- Mappings:
Namespace Name Mixin selector official wLebr;w:Lezj$b;intermediary field_3046Lnet/minecraft/class_500;field_3046:Lnet/minecraft/class_1134$class_1136;named lanServersLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;lanServers:Lnet/minecraft/client/network/LanServerQueryManager$LanServerEntryList;
-
lanServerDetector
- Mappings:
Namespace Name Mixin selector official xLebr;x:Lezj$a;intermediary field_3045Lnet/minecraft/class_500;field_3045:Lnet/minecraft/class_1134$class_1135;named lanServerDetectorLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;lanServerDetector:Lnet/minecraft/client/network/LanServerQueryManager$LanServerDetector;
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector official yLebr;y:Zintermediary field_3048Lnet/minecraft/class_500;field_3048:Znamed initializedLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;initialized:Z
-
-
Constructor Details
-
MultiplayerScreen
- Mappings:
Namespace Name Mixin selector official <init>Lebr;<init>(Ldzg;)Vintermediary <init>Lnet/minecraft/class_500;<init>(Lnet/minecraft/class_437;)Vnamed <init>Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classScreen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
removed
public void removed() -
refresh
private void refresh()- Mappings:
Namespace Name Mixin selector official mLebr;m()Vintermediary method_2534Lnet/minecraft/class_500;method_2534()Vnamed refreshLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;refresh()V
-
removeEntry
private void removeEntry(boolean confirmedAction)- Mappings:
Namespace Name Mixin selector official cLebr;c(Z)Vintermediary method_20377Lnet/minecraft/class_500;method_20377(Z)Vnamed removeEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;removeEntry(Z)V
-
editEntry
private void editEntry(boolean confirmedAction)- Mappings:
Namespace Name Mixin selector official dLebr;d(Z)Vintermediary method_20378Lnet/minecraft/class_500;method_20378(Z)Vnamed editEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;editEntry(Z)V
-
addEntry
private void addEntry(boolean confirmedAction)- Mappings:
Namespace Name Mixin selector official eLebr;e(Z)Vintermediary method_20379Lnet/minecraft/class_500;method_20379(Z)Vnamed addEntryLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;addEntry(Z)V
-
directConnect
private void directConnect(boolean confirmedAction)- Mappings:
Namespace Name Mixin selector official fLebr;f(Z)Vintermediary method_20380Lnet/minecraft/class_500;method_20380(Z)Vnamed directConnectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;directConnect(Z)V
-
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.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- 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:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
connect
public void connect()- Mappings:
Namespace Name Mixin selector official hLebr;h()Vintermediary method_2536Lnet/minecraft/class_500;method_2536()Vnamed connectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;connect()V
-
connect
- Mappings:
Namespace Name Mixin selector official aLebr;a(Leid;)Vintermediary method_2548Lnet/minecraft/class_500;method_2548(Lnet/minecraft/class_642;)Vnamed connectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;connect(Lnet/minecraft/client/network/ServerInfo;)V
-
select
- Mappings:
Namespace Name Mixin selector official aLebr;a(Lebt$a;)Vintermediary method_2531Lnet/minecraft/class_500;method_2531(Lnet/minecraft/class_4267$class_504;)Vnamed selectLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;select(Lnet/minecraft/client/gui/screen/multiplayer/MultiplayerServerListWidget$Entry;)V
-
updateButtonActivationStates
protected void updateButtonActivationStates()- Mappings:
Namespace Name Mixin selector official iLebr;i()Vintermediary method_20121Lnet/minecraft/class_500;method_20121()Vnamed updateButtonActivationStatesLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;updateButtonActivationStates()V
-
getServerListPinger
- Mappings:
Namespace Name Mixin selector official kLebr;k()Leif;intermediary method_2538Lnet/minecraft/class_500;method_2538()Lnet/minecraft/class_644;named getServerListPingerLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;getServerListPinger()Lnet/minecraft/client/network/MultiplayerServerListPinger;
-
setTooltip
- Mappings:
Namespace Name Mixin selector official bLebr;b(Ljava/util/List;)Vintermediary method_2528Lnet/minecraft/class_500;method_2528(Ljava/util/List;)Vnamed setTooltipLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;setTooltip(Ljava/util/List;)V
-
getServerList
- Mappings:
Namespace Name Mixin selector official lLebr;l()Leie;intermediary method_2529Lnet/minecraft/class_500;method_2529()Lnet/minecraft/class_641;named getServerListLnet/minecraft/client/gui/screen/multiplayer/MultiplayerScreen;getServerList()Lnet/minecraft/client/option/ServerList;
-