Package net.minecraft.client.gui.screen
Class ConnectScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.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 - etl- intermediary - net/minecraft/class_412- named - net/minecraft/client/gui/screen/ConnectScreen
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screen.ScreenScreen.SelectedElementNarrationData
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final Textstatic 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 TextFields inherited from class net.minecraft.client.gui.screen.Screenclient, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidconnect(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay) private voidconnect(MinecraftClient client, ServerAddress address, @Nullable ServerInfo info) 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.ScreenaddDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElementgetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
- 
Field Details- 
CONNECTOR_THREADS_COUNT- Mappings:
- Namespace - Name - Mixin selector - official - b- Letl;b:Ljava/util/concurrent/atomic/AtomicInteger;- intermediary - field_2408- Lnet/minecraft/class_412;field_2408:Ljava/util/concurrent/atomic/AtomicInteger;- named - CONNECTOR_THREADS_COUNT- Lnet/minecraft/client/gui/screen/ConnectScreen;CONNECTOR_THREADS_COUNT:Ljava/util/concurrent/atomic/AtomicInteger;
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - c- Letl;c:Lorg/slf4j/Logger;- intermediary - field_2410- Lnet/minecraft/class_412;field_2410:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/client/gui/screen/ConnectScreen;LOGGER:Lorg/slf4j/Logger;
 
- 
NARRATOR_INTERVALprivate static final long NARRATOR_INTERVAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Letl;k:J- intermediary - field_32238- Lnet/minecraft/class_412;field_32238:J- named - NARRATOR_INTERVAL- Lnet/minecraft/client/gui/screen/ConnectScreen;NARRATOR_INTERVAL:J
 
- 
ABORTED_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - l- Letl;l:Lsw;- intermediary - field_44970- Lnet/minecraft/class_412;field_44970:Lnet/minecraft/class_2561;- named - ABORTED_TEXT- Lnet/minecraft/client/gui/screen/ConnectScreen;ABORTED_TEXT:Lnet/minecraft/text/Text;
 
- 
BLOCKED_HOST_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - a- Letl;a:Lsw;- intermediary - field_33736- Lnet/minecraft/class_412;field_33736:Lnet/minecraft/class_2561;- named - BLOCKED_HOST_TEXT- Lnet/minecraft/client/gui/screen/ConnectScreen;BLOCKED_HOST_TEXT:Lnet/minecraft/text/Text;
 
- 
connectionThe 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 - m- Letl;m:Lsd;- intermediary - field_2411- Lnet/minecraft/class_412;field_2411:Lnet/minecraft/class_2535;- named - connection- Lnet/minecraft/client/gui/screen/ConnectScreen;connection:Lnet/minecraft/network/ClientConnection;
 
- 
future- Mappings:
- Namespace - Name - Mixin selector - official - n- Letl;n:Lio/netty/channel/ChannelFuture;- intermediary - field_44971- Lnet/minecraft/class_412;field_44971:Lio/netty/channel/ChannelFuture;- named - future- Lnet/minecraft/client/gui/screen/ConnectScreen;future:Lio/netty/channel/ChannelFuture;
 
- 
connectingCancelledvolatile boolean connectingCancelled- Mappings:
- Namespace - Name - Mixin selector - official - o- Letl;o:Z- intermediary - field_2409- Lnet/minecraft/class_412;field_2409:Z- named - connectingCancelled- Lnet/minecraft/client/gui/screen/ConnectScreen;connectingCancelled:Z
 
- 
parent- Mappings:
- Namespace - Name - Mixin selector - official - p- Letl;p:Leuq;- intermediary - field_2412- Lnet/minecraft/class_412;field_2412:Lnet/minecraft/class_437;- named - parent- Lnet/minecraft/client/gui/screen/ConnectScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
 
- 
status- Mappings:
- Namespace - Name - Mixin selector - official - q- Letl;q:Lsw;- intermediary - field_2413- Lnet/minecraft/class_412;field_2413:Lnet/minecraft/class_2561;- named - status- Lnet/minecraft/client/gui/screen/ConnectScreen;status:Lnet/minecraft/text/Text;
 
- 
lastNarrationTimeprivate long lastNarrationTime- Mappings:
- Namespace - Name - Mixin selector - official - r- Letl;r:J- intermediary - field_19097- Lnet/minecraft/class_412;field_19097:J- named - lastNarrationTime- Lnet/minecraft/client/gui/screen/ConnectScreen;lastNarrationTime:J
 
- 
failureErrorMessage- Mappings:
- Namespace - Name - Mixin selector - official - s- Letl;s:Lsw;- intermediary - field_44548- Lnet/minecraft/class_412;field_44548:Lnet/minecraft/class_2561;- named - failureErrorMessage- Lnet/minecraft/client/gui/screen/ConnectScreen;failureErrorMessage:Lnet/minecraft/text/Text;
 
 
- 
- 
Constructor Details- 
ConnectScreen- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Letl;<init>(Leuq;Lsw;)V- intermediary - <init>- Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;)V- named - <init>- Lnet/minecraft/client/gui/screen/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;)V
 
 
- 
- 
Method Details- 
connectpublic static void connect(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay) - Mappings:
- Namespace - Name - Mixin selector - official - a- Letl;a(Leuq;Lenn;Lfga;Lffd;Z)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;Z)V- named - connect- Lnet/minecraft/client/gui/screen/ConnectScreen;connect(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/network/ServerInfo;Z)V
 
- 
connectprivate void connect(MinecraftClient client, ServerAddress address, @Nullable @Nullable ServerInfo info) - Mappings:
- Namespace - Name - Mixin selector - official - a- Letl;a(Lenn;Lfga;Lffd;)V- intermediary - method_2130- Lnet/minecraft/class_412;method_2130(Lnet/minecraft/class_310;Lnet/minecraft/class_639;Lnet/minecraft/class_642;)V- named - connect- Lnet/minecraft/client/gui/screen/ConnectScreen;connect(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/network/ServerInfo;)V
 
- 
setStatus- Mappings:
- Namespace - Name - Mixin selector - official - a- Letl;a(Lsw;)V- intermediary - method_2131- Lnet/minecraft/class_412;method_2131(Lnet/minecraft/class_2561;)V- named - setStatus- Lnet/minecraft/client/gui/screen/ConnectScreen;setStatus(Lnet/minecraft/text/Text;)V
 
- 
tickpublic void tick()
- 
shouldCloseOnEscpublic boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
- shouldCloseOnEscin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - av_- Leuq;av_()Z- intermediary - method_25422- Lnet/minecraft/class_437;method_25422()Z- named - shouldCloseOnEsc- Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
 
- 
initprotected 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(net.minecraft.client.gui.Element)to set the element that is initially focused.
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqh;a(Leox;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
 
-