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 official fiqintermediary net/minecraft/class_412named net/minecraft/client/gui/screen/multiplayer/ConnectScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Text(package private) boolean(package private) @Nullable ClientConnectionThe client connection to the remote server.private static final AtomicInteger(package private) final Text(package private) @Nullable ChannelFutureprivate long(package private) static final Loggerprivate static final long(package private) final Screenprivate Textstatic final TextFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, MENU_BACKGROUND_TEXTURE, PANORAMA_OVERLAY_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconnect(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay, @Nullable CookieStorage cookieStorage) private voidconnect(MinecraftClient client, ServerAddress address, ServerInfo info, @Nullable CookieStorage cookieStorage) protected voidinit()Called when a screen should be initialized.voidrender(DrawContext context, int mouseX, int mouseY, float delta) private voidbooleanChecks whether this screen should be closed when the escape key is pressed.voidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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.navigation.Navigable
getNavigationOrderMethods 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 official cLfiq;c:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_2408Lnet/minecraft/class_412;field_2408:Ljava/util/concurrent/atomic/AtomicInteger;named CONNECTOR_THREADS_COUNTLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;CONNECTOR_THREADS_COUNT:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official dLfiq;d:Lorg/slf4j/Logger;intermediary field_2410Lnet/minecraft/class_412;field_2410:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;LOGGER:Lorg/slf4j/Logger;
-
NARRATOR_INTERVAL
private static final long NARRATOR_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official oLfiq;o:Jintermediary field_32238Lnet/minecraft/class_412;field_32238:Jnamed NARRATOR_INTERVALLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;NARRATOR_INTERVAL:J
-
ABORTED_TEXT
- Mappings:
Namespace Name Mixin selector official aLfiq;a:Lwi;intermediary field_44970Lnet/minecraft/class_412;field_44970:Lnet/minecraft/class_2561;named ABORTED_TEXTLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;ABORTED_TEXT:Lnet/minecraft/text/Text;
-
UNKNOWN_HOST_TEXT
- Mappings:
Namespace Name Mixin selector official bLfiq;b:Lwi;intermediary field_33736Lnet/minecraft/class_412;field_33736:Lnet/minecraft/class_2561;named UNKNOWN_HOST_TEXTLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;UNKNOWN_HOST_TEXT:Lnet/minecraft/text/Text;
-
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 official pLfiq;p:Lvg;intermediary field_2411Lnet/minecraft/class_412;field_2411:Lnet/minecraft/class_2535;named connectionLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connection:Lnet/minecraft/network/ClientConnection;
-
future
- Mappings:
Namespace Name Mixin selector official qLfiq;q:Lio/netty/channel/ChannelFuture;intermediary field_44971Lnet/minecraft/class_412;field_44971:Lio/netty/channel/ChannelFuture;named futureLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;future:Lio/netty/channel/ChannelFuture;
-
connectingCancelled
volatile boolean connectingCancelled- Mappings:
Namespace Name Mixin selector official rLfiq;r:Zintermediary field_2409Lnet/minecraft/class_412;field_2409:Znamed connectingCancelledLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;connectingCancelled:Z
-
parent
- Mappings:
Namespace Name Mixin selector official sLfiq;s:Lfjx;intermediary field_2412Lnet/minecraft/class_412;field_2412:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
status
- Mappings:
Namespace Name Mixin selector official uLfiq;u:Lwi;intermediary field_2413Lnet/minecraft/class_412;field_2413:Lnet/minecraft/class_2561;named statusLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;status:Lnet/minecraft/text/Text;
-
lastNarrationTime
private long lastNarrationTime- Mappings:
Namespace Name Mixin selector official vLfiq;v:Jintermediary field_19097Lnet/minecraft/class_412;field_19097:Jnamed lastNarrationTimeLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;lastNarrationTime:J
-
failureErrorMessage
- Mappings:
Namespace Name Mixin selector official wLfiq;w:Lwi;intermediary field_44548Lnet/minecraft/class_412;field_44548:Lnet/minecraft/class_2561;named failureErrorMessageLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;failureErrorMessage:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ConnectScreen
- Mappings:
Namespace Name Mixin selector official <init>Lfiq;<init>(Lfjx;Lwi;)Vintermediary <init>Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;)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 official aLfiq;a(Lfjx;Lfby;Lfwh;Lfve;ZLfvi;)Vintermediary method_36877Lnet/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;)Vnamed connectLnet/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
-
connect
private void connect(MinecraftClient client, ServerAddress address, ServerInfo info, @Nullable @Nullable CookieStorage cookieStorage) - Mappings:
Namespace Name Mixin selector official aLfiq;a(Lfby;Lfwh;Lfve;Lfvi;)Vintermediary method_2130Lnet/minecraft/class_412;method_2130(Lnet/minecraft/class_310;Lnet/minecraft/class_639;Lnet/minecraft/class_642;Lnet/minecraft/class_9112;)Vnamed connectLnet/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
-
setStatus
- Mappings:
Namespace Name Mixin selector official aLfiq;a(Lwi;)Vintermediary method_2131Lnet/minecraft/class_412;method_2131(Lnet/minecraft/class_2561;)Vnamed setStatusLnet/minecraft/client/gui/screen/multiplayer/ConnectScreen;setStatus(Lnet/minecraft/text/Text;)V
-
tick
public void tick() -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector official aD_Lfjx;aD_()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Znamed shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()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:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLffb;a(Lfdl;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-