类 ClientLoginNetworkHandler
- java.lang.Object
-
- net.minecraft.client.network.ClientLoginNetworkHandler
-
- 所有已实现的接口:
ClientLoginPacketListener,PacketListener
@Environment(CLIENT) public class ClientLoginNetworkHandler extends Object implements ClientLoginPacketListener
- Mappings:
Namespace Name official ehwintermediary net/minecraft/class_635named net/minecraft/client/network/ClientLoginNetworkHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 private MinecraftClientclientprivate ClientConnectionconnectionprivate static LoggerLOGGERprivate @Nullable ScreenparentScreenprivate com.mojang.authlib.GameProfileprofileprivate Consumer<Text>statusConsumer
-
构造器概要
构造器 构造器 说明 ClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, @Nullable Screen parentGui, Consumer<Text> statusConsumer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClientConnectiongetConnection()Returns the connection this packet listener intends to listen to.private com.mojang.authlib.minecraft.MinecraftSessionServicegetSessionService()private @Nullable TextjoinServerSession(String serverId)voidonCompression(LoginCompressionS2CPacket packet)voidonDisconnect(LoginDisconnectS2CPacket packet)voidonDisconnected(Text reason)Called when the connection this listener listens to has disconnected.voidonHello(LoginHelloS2CPacket packet)voidonLoginSuccess(LoginSuccessS2CPacket packet)voidonQueryRequest(LoginQueryRequestS2CPacket packet)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLehw;a:Lorg/apache/logging/log4j/Logger;intermediary field_3710Lnet/minecraft/class_635;field_3710:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
client
private final MinecraftClient client
- Mappings:
Namespace Name Mixin selector official bLehw;b:Ldum;intermediary field_3708Lnet/minecraft/class_635;field_3708:Lnet/minecraft/class_310;named clientLnet/minecraft/client/network/ClientLoginNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
-
parentScreen
@Nullable private final @Nullable Screen parentScreen
- Mappings:
Namespace Name Mixin selector official cLehw;c:Ldzg;intermediary field_3706Lnet/minecraft/class_635;field_3706:Lnet/minecraft/class_437;named parentScreenLnet/minecraft/client/network/ClientLoginNetworkHandler;parentScreen:Lnet/minecraft/client/gui/screen/Screen;
-
statusConsumer
private final Consumer<Text> statusConsumer
- Mappings:
Namespace Name Mixin selector official dLehw;d:Ljava/util/function/Consumer;intermediary field_3711Lnet/minecraft/class_635;field_3711:Ljava/util/function/Consumer;named statusConsumerLnet/minecraft/client/network/ClientLoginNetworkHandler;statusConsumer:Ljava/util/function/Consumer;
-
connection
private final ClientConnection connection
- Mappings:
Namespace Name Mixin selector official eLehw;e:Lnz;intermediary field_3707Lnet/minecraft/class_635;field_3707:Lnet/minecraft/class_2535;named connectionLnet/minecraft/client/network/ClientLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
profile
private com.mojang.authlib.GameProfile profile
- Mappings:
Namespace Name Mixin selector official fLehw;f:Lcom/mojang/authlib/GameProfile;intermediary field_3709Lnet/minecraft/class_635;field_3709:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/client/network/ClientLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
-
构造器详细资料
-
ClientLoginNetworkHandler
public ClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, @Nullable @Nullable Screen parentGui, Consumer<Text> statusConsumer)
- Mappings:
Namespace Name Mixin selector official <init>Lehw;<init>(Lnz;Ldum;Ldzg;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_635;<init>(Lnet/minecraft/class_2535;Lnet/minecraft/class_310;Lnet/minecraft/class_437;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/client/network/ClientLoginNetworkHandler;<init>(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/Screen;Ljava/util/function/Consumer;)V
-
-
方法详细资料
-
onHello
public void onHello(LoginHelloS2CPacket packet)
- 指定者:
onHello在接口中ClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLve;a(Lvh;)Vintermediary method_12587Lnet/minecraft/class_2896;method_12587(Lnet/minecraft/class_2905;)Vnamed onHelloLnet/minecraft/network/listener/ClientLoginPacketListener;onHello(Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;)V
-
joinServerSession
@Nullable private @Nullable Text joinServerSession(String serverId)
- Mappings:
Namespace Name Mixin selector official aLehw;a(Ljava/lang/String;)Lon;intermediary method_2892Lnet/minecraft/class_635;method_2892(Ljava/lang/String;)Lnet/minecraft/class_2561;named joinServerSessionLnet/minecraft/client/network/ClientLoginNetworkHandler;joinServerSession(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getSessionService
private com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()
- Mappings:
Namespace Name Mixin selector official bLehw;b()Lcom/mojang/authlib/minecraft/MinecraftSessionService;intermediary method_2891Lnet/minecraft/class_635;method_2891()Lcom/mojang/authlib/minecraft/MinecraftSessionService;named getSessionServiceLnet/minecraft/client/network/ClientLoginNetworkHandler;getSessionService()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
-
onLoginSuccess
public void onLoginSuccess(LoginSuccessS2CPacket packet)
- 指定者:
onLoginSuccess在接口中ClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLve;a(Lvg;)Vintermediary method_12588Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)Vnamed onLoginSuccessLnet/minecraft/network/listener/ClientLoginPacketListener;onLoginSuccess(Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;)V
-
onDisconnected
public void onDisconnected(Text reason)
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- 指定者:
onDisconnected在接口中PacketListener- 参数:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLoe;a(Lon;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnection
public ClientConnection getConnection()
Returns the connection this packet listener intends to listen to.- 指定者:
getConnection在接口中PacketListener- 另请参阅:
ClientConnection.getPacketListener()- Mappings:
Namespace Name Mixin selector official aLoe;a()Lnz;intermediary method_2872Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;named getConnectionLnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
onDisconnect
public void onDisconnect(LoginDisconnectS2CPacket packet)
- 指定者:
onDisconnect在接口中ClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLve;a(Lvj;)Vintermediary method_12584Lnet/minecraft/class_2896;method_12584(Lnet/minecraft/class_2909;)Vnamed onDisconnectLnet/minecraft/network/listener/ClientLoginPacketListener;onDisconnect(Lnet/minecraft/network/packet/s2c/login/LoginDisconnectS2CPacket;)V
-
onCompression
public void onCompression(LoginCompressionS2CPacket packet)
- 指定者:
onCompression在接口中ClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLve;a(Lvi;)Vintermediary method_12585Lnet/minecraft/class_2896;method_12585(Lnet/minecraft/class_2907;)Vnamed onCompressionLnet/minecraft/network/listener/ClientLoginPacketListener;onCompression(Lnet/minecraft/network/packet/s2c/login/LoginCompressionS2CPacket;)V
-
onQueryRequest
public void onQueryRequest(LoginQueryRequestS2CPacket packet)
- 指定者:
onQueryRequest在接口中ClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLve;a(Lvf;)Vintermediary method_12586Lnet/minecraft/class_2896;method_12586(Lnet/minecraft/class_2899;)Vnamed onQueryRequestLnet/minecraft/network/listener/ClientLoginPacketListener;onQueryRequest(Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;)V
-
-