Package net.minecraft.client.network
Class ClientLoginNetworkHandler
java.lang.Object
net.minecraft.client.network.ClientLoginNetworkHandler
- All Implemented Interfaces:
ClientLoginPacketListener
,PacketListener
@Environment(CLIENT) public class ClientLoginNetworkHandler extends Object implements ClientLoginPacketListener
- Mappings:
Namespace Name official edx
intermediary net/minecraft/class_635
named net/minecraft/client/network/ClientLoginNetworkHandler
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private ClientConnection
connection
private static Logger
LOGGER
private Screen
parentGui
private com.mojang.authlib.GameProfile
profile
private Consumer<Text>
statusConsumer
-
Constructor Summary
Constructors Constructor Description ClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, Screen parentGui, Consumer<Text> statusConsumer)
-
Method Summary
Modifier and Type Method Description ClientConnection
getConnection()
private com.mojang.authlib.minecraft.MinecraftSessionService
getSessionService()
private Text
joinServerSession(String serverId)
void
onCompression(LoginCompressionS2CPacket packet)
void
onDisconnect(LoginDisconnectS2CPacket packet)
void
onDisconnected(Text reason)
void
onHello(LoginHelloS2CPacket packet)
void
onLoginSuccess(LoginSuccessS2CPacket packet)
void
onQueryRequest(LoginQueryRequestS2CPacket packet)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ledx;a:Lorg/apache/logging/log4j/Logger;
intermediary field_3710
Lnet/minecraft/class_635;field_3710:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector official b
Ledx;b:Ldqk;
intermediary field_3708
Lnet/minecraft/class_635;field_3708:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/network/ClientLoginNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
-
parentGui
- Mappings:
Namespace Name Mixin selector official c
Ledx;c:Ldve;
intermediary field_3706
Lnet/minecraft/class_635;field_3706:Lnet/minecraft/class_437;
named parentGui
Lnet/minecraft/client/network/ClientLoginNetworkHandler;parentGui:Lnet/minecraft/client/gui/screen/Screen;
-
statusConsumer
- Mappings:
Namespace Name Mixin selector official d
Ledx;d:Ljava/util/function/Consumer;
intermediary field_3711
Lnet/minecraft/class_635;field_3711:Ljava/util/function/Consumer;
named statusConsumer
Lnet/minecraft/client/network/ClientLoginNetworkHandler;statusConsumer:Ljava/util/function/Consumer;
-
connection
- Mappings:
Namespace Name Mixin selector official e
Ledx;e:Lnu;
intermediary field_3707
Lnet/minecraft/class_635;field_3707:Lnet/minecraft/class_2535;
named connection
Lnet/minecraft/client/network/ClientLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
profile
private com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official f
Ledx;f:Lcom/mojang/authlib/GameProfile;
intermediary field_3709
Lnet/minecraft/class_635;field_3709:Lcom/mojang/authlib/GameProfile;
named profile
Lnet/minecraft/client/network/ClientLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
-
Constructor Details
-
ClientLoginNetworkHandler
public ClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, @Nullable Screen parentGui, Consumer<Text> statusConsumer)- Mappings:
Namespace Name Mixin selector official <init>
Ledx;<init>(Lnu;Ldqk;Ldve;Ljava/util/function/Consumer;)V
intermediary <init>
Lnet/minecraft/class_635;<init>(Lnet/minecraft/class_2535;Lnet/minecraft/class_310;Lnet/minecraft/class_437;Ljava/util/function/Consumer;)V
named <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
-
-
Method Details
-
onHello
- Specified by:
onHello
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Luq;a(Lut;)V
intermediary method_12587
Lnet/minecraft/class_2896;method_12587(Lnet/minecraft/class_2905;)V
named onHello
Lnet/minecraft/network/listener/ClientLoginPacketListener;onHello(Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;)V
-
joinServerSession
- Mappings:
Namespace Name Mixin selector official a
Ledx;a(Ljava/lang/String;)Loi;
intermediary method_2892
Lnet/minecraft/class_635;method_2892(Ljava/lang/String;)Lnet/minecraft/class_2561;
named joinServerSession
Lnet/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 b
Ledx;b()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
intermediary method_2891
Lnet/minecraft/class_635;method_2891()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
named getSessionService
Lnet/minecraft/client/network/ClientLoginNetworkHandler;getSessionService()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
-
onLoginSuccess
- Specified by:
onLoginSuccess
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Luq;a(Lus;)V
intermediary method_12588
Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)V
named onLoginSuccess
Lnet/minecraft/network/listener/ClientLoginPacketListener;onLoginSuccess(Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;)V
-
onDisconnected
- Specified by:
onDisconnected
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector official a
Lnz;a(Loi;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnection
- Specified by:
getConnection
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector official a
Lnz;a()Lnu;
intermediary method_2872
Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;
named getConnection
Lnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
onDisconnect
- Specified by:
onDisconnect
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Luq;a(Luv;)V
intermediary method_12584
Lnet/minecraft/class_2896;method_12584(Lnet/minecraft/class_2909;)V
named onDisconnect
Lnet/minecraft/network/listener/ClientLoginPacketListener;onDisconnect(Lnet/minecraft/network/packet/s2c/login/LoginDisconnectS2CPacket;)V
-
onCompression
- Specified by:
onCompression
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Luq;a(Luu;)V
intermediary method_12585
Lnet/minecraft/class_2896;method_12585(Lnet/minecraft/class_2907;)V
named onCompression
Lnet/minecraft/network/listener/ClientLoginPacketListener;onCompression(Lnet/minecraft/network/packet/s2c/login/LoginCompressionS2CPacket;)V
-
onQueryRequest
- Specified by:
onQueryRequest
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Luq;a(Lur;)V
intermediary method_12586
Lnet/minecraft/class_2896;method_12586(Lnet/minecraft/class_2899;)V
named onQueryRequest
Lnet/minecraft/network/listener/ClientLoginPacketListener;onQueryRequest(Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;)V
-