类 ConnectScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.ConnectScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class ConnectScreen extends Screen
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 dygintermediary net/minecraft/class_412named net/minecraft/client/gui/screen/ConnectScreen
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanconnectingCancelledprivate ClientConnectionconnectionThe client connection to the remote server.private static AtomicIntegerCONNECTOR_THREADS_COUNTprivate static longfield_32238private static LoggerLOGGERprivate longnarratorTimerprivate Screenparentprivate Textstatus-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 ConnectScreen(Screen parent, MinecraftClient client, String address, int port)ConnectScreen(Screen parent, MinecraftClient client, ServerInfo entry)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidconnect(String address, int port)protected voidinit()Called when a screen should be initialized.voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidsetStatus(Text status)booleanshouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.voidtick()-
从类继承的方法 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, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 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, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
CONNECTOR_THREADS_COUNT
private static final AtomicInteger CONNECTOR_THREADS_COUNT
- Mappings:
Namespace Name Mixin selector official aLdyg;a: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/ConnectScreen;CONNECTOR_THREADS_COUNT:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official bLdyg;b:Lorg/apache/logging/log4j/Logger;intermediary field_2410Lnet/minecraft/class_412;field_2410:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/ConnectScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_32238
private static final long field_32238
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLdyg;c:Jintermediary field_32238Lnet/minecraft/class_412;field_32238:Jnamed field_32238Lnet/minecraft/client/gui/screen/ConnectScreen;field_32238:J
-
connection
private ClientConnection connection
The client connection to the remote server. This is not used when connecting to the client's own integrated server.- 另请参阅:
MinecraftClient.integratedServerConnection- Mappings:
Namespace Name Mixin selector official pLdyg;p:Lnz;intermediary field_2411Lnet/minecraft/class_412;field_2411:Lnet/minecraft/class_2535;named connectionLnet/minecraft/client/gui/screen/ConnectScreen;connection:Lnet/minecraft/network/ClientConnection;
-
connectingCancelled
private boolean connectingCancelled
- Mappings:
Namespace Name Mixin selector official qLdyg;q:Zintermediary field_2409Lnet/minecraft/class_412;field_2409:Znamed connectingCancelledLnet/minecraft/client/gui/screen/ConnectScreen;connectingCancelled:Z
-
parent
private final Screen parent
- Mappings:
Namespace Name Mixin selector official rLdyg;r:Ldzg;intermediary field_2412Lnet/minecraft/class_412;field_2412:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/ConnectScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
status
private Text status
- Mappings:
Namespace Name Mixin selector official sLdyg;s:Lon;intermediary field_2413Lnet/minecraft/class_412;field_2413:Lnet/minecraft/class_2561;named statusLnet/minecraft/client/gui/screen/ConnectScreen;status:Lnet/minecraft/text/Text;
-
narratorTimer
private long narratorTimer
- Mappings:
Namespace Name Mixin selector official tLdyg;t:Jintermediary field_19097Lnet/minecraft/class_412;field_19097:Jnamed narratorTimerLnet/minecraft/client/gui/screen/ConnectScreen;narratorTimer:J
-
-
构造器详细资料
-
ConnectScreen
public ConnectScreen(Screen parent, MinecraftClient client, ServerInfo entry)
- Mappings:
Namespace Name Mixin selector official <init>Ldyg;<init>(Ldzg;Ldum;Leid;)Vintermediary <init>Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_310;Lnet/minecraft/class_642;)Vnamed <init>Lnet/minecraft/client/gui/screen/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerInfo;)V
-
ConnectScreen
public ConnectScreen(Screen parent, MinecraftClient client, String address, int port)
- Mappings:
Namespace Name Mixin selector official <init>Ldyg;<init>(Ldzg;Ldum;Ljava/lang/String;I)Vintermediary <init>Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_310;Ljava/lang/String;I)Vnamed <init>Lnet/minecraft/client/gui/screen/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;I)V
-
-
方法详细资料
-
connect
private void connect(String address, int port)
- Mappings:
Namespace Name Mixin selector official aLdyg;a(Ljava/lang/String;I)Vintermediary method_2130Lnet/minecraft/class_412;method_2130(Ljava/lang/String;I)Vnamed connectLnet/minecraft/client/gui/screen/ConnectScreen;connect(Ljava/lang/String;I)V
-
setStatus
private void setStatus(Text status)
- Mappings:
Namespace Name Mixin selector official aLdyg;a(Lon;)Vintermediary method_2131Lnet/minecraft/class_412;method_2131(Lnet/minecraft/class_2561;)Vnamed setStatusLnet/minecraft/client/gui/screen/ConnectScreen;setStatus(Lnet/minecraft/text/Text;)V
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- 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
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.- 覆盖:
shouldCloseOnEsc在类中Screen- Mappings:
Namespace Name Mixin selector official az_Ldzg;az_()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.
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- 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
-
-