Class ConnectScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.multiplayer.ConnectScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
The connection screen is used to initiate a connection to a remote server.
This is only used when connecting over LAN or to a remote dedicated server.
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/multiplayer/ConnectScreen
intermediary net/minecraft/class_412
official fnc
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Text
(package private) boolean
(package private) @Nullable ClientConnection
The client connection to the remote server.private static final AtomicInteger
(package private) final Text
(package private) @Nullable ChannelFuture
private long
(package private) static final Logger
private static final long
(package private) final Screen
private Text
static final Text
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
connect
(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay, @Nullable CookieStorage cookieStorage) private void
connect
(MinecraftClient client, ServerAddress address, ServerInfo info, @Nullable CookieStorage cookieStorage) protected void
init()
Called when a screen should be initialized.void
render
(DrawContext context, int mouseX, int mouseY, float delta) private void
boolean
Checks whether this screen should be closed when the escape key is pressed.void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldPause, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
CONNECTOR_THREADS_COUNT
- Mappings:
Namespace Name Mixin selector named CONNECTOR_THREADS_COUNT
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;CONNECTOR_THREADS_COUNT:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_2408
Lnet/minecraft/class_412;field_2408:Ljava/util/concurrent/atomic/AtomicInteger;
official c
Lfnc;c:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;LOGGER:Lorg/slf4j/Logger;
intermediary field_2410
Lnet/minecraft/class_412;field_2410:Lorg/slf4j/Logger;
official r
Lfnc;r:Lorg/slf4j/Logger;
-
NARRATOR_INTERVAL
private static final long NARRATOR_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named NARRATOR_INTERVAL
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;NARRATOR_INTERVAL:J
intermediary field_32238
Lnet/minecraft/class_412;field_32238:J
official s
Lfnc;s:J
-
ABORTED_TEXT
- Mappings:
Namespace Name Mixin selector named ABORTED_TEXT
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;ABORTED_TEXT:Lnet/minecraft/text/Text;
intermediary field_44970
Lnet/minecraft/class_412;field_44970:Lnet/minecraft/class_2561;
official a
Lfnc;a:Lwz;
-
UNKNOWN_HOST_TEXT
- Mappings:
Namespace Name Mixin selector named UNKNOWN_HOST_TEXT
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;UNKNOWN_HOST_TEXT:Lnet/minecraft/text/Text;
intermediary field_33736
Lnet/minecraft/class_412;field_33736:Lnet/minecraft/class_2561;
official b
Lfnc;b:Lwz;
-
connection
The client connection to the remote server. This is not used when connecting to the client's own integrated server.- See Also:
- Mappings:
Namespace Name Mixin selector named connection
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connection:Lnet/minecraft/network/ClientConnection;
intermediary field_2411
Lnet/minecraft/class_412;field_2411:Lnet/minecraft/class_2535;
official u
Lfnc;u:Lvt;
-
future
- Mappings:
Namespace Name Mixin selector named future
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;future:Lio/netty/channel/ChannelFuture;
intermediary field_44971
Lnet/minecraft/class_412;field_44971:Lio/netty/channel/ChannelFuture;
official v
Lfnc;v:Lio/netty/channel/ChannelFuture;
-
connectingCancelled
volatile boolean connectingCancelled- Mappings:
Namespace Name Mixin selector named connectingCancelled
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connectingCancelled:Z
intermediary field_2409
Lnet/minecraft/class_412;field_2409:Z
official w
Lfnc;w:Z
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_2412
Lnet/minecraft/class_412;field_2412:Lnet/minecraft/class_437;
official x
Lfnc;x:Lfod;
-
status
- Mappings:
Namespace Name Mixin selector named status
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;status:Lnet/minecraft/text/Text;
intermediary field_2413
Lnet/minecraft/class_412;field_2413:Lnet/minecraft/class_2561;
official y
Lfnc;y:Lwz;
-
lastNarrationTime
private long lastNarrationTime- Mappings:
Namespace Name Mixin selector named lastNarrationTime
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;lastNarrationTime:J
intermediary field_19097
Lnet/minecraft/class_412;field_19097:J
official z
Lfnc;z:J
-
failureErrorMessage
- Mappings:
Namespace Name Mixin selector named failureErrorMessage
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;failureErrorMessage:Lnet/minecraft/text/Text;
intermediary field_44548
Lnet/minecraft/class_412;field_44548:Lnet/minecraft/class_2561;
official A
Lfnc;A:Lwz;
-
-
Constructor Details
-
ConnectScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;)V
official <init>
Lfnc;<init>(Lfod;Lwz;)V
-
-
Method Details
-
connect
public static void connect(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay, @Nullable @Nullable CookieStorage cookieStorage) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connect(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/network/ServerInfo;ZLnet/minecraft/client/network/CookieStorage;)V
intermediary method_36877
Lnet/minecraft/class_412;method_36877(Lnet/minecraft/class_437;Lnet/minecraft/class_310;Lnet/minecraft/class_639;Lnet/minecraft/class_642;ZLnet/minecraft/class_9112;)V
official a
Lfnc;a(Lfod;Lfgo;Lgax;Lfzt;ZLfzy;)V
-
connect
private void connect(MinecraftClient client, ServerAddress address, ServerInfo info, @Nullable @Nullable CookieStorage cookieStorage) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connect(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/network/ServerInfo;Lnet/minecraft/client/network/CookieStorage;)V
intermediary method_2130
Lnet/minecraft/class_412;method_2130(Lnet/minecraft/class_310;Lnet/minecraft/class_639;Lnet/minecraft/class_642;Lnet/minecraft/class_9112;)V
official a
Lfnc;a(Lfgo;Lgax;Lfzt;Lfzy;)V
-
setStatus
- Mappings:
Namespace Name Mixin selector named setStatus
Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;setStatus(Lnet/minecraft/text/Text;)V
intermediary method_2131
Lnet/minecraft/class_412;method_2131(Lnet/minecraft/class_2561;)V
official a
Lfnc;a(Lwz;)V
-
tick
public void tick() -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
official aJ_
Lfod;aJ_()Z
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
This should call
Screen.setInitialFocus()
to set the element that is initially focused. -
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfjp;a(Lfhz;IIF)V
-