Package net.minecraft.client.network
Class ClientLoginNetworkHandler
java.lang.Object
net.minecraft.client.network.ClientLoginNetworkHandler
- All Implemented Interfaces:
ClientCookieRequestPacketListener
,ClientLoginPacketListener
,ClientPacketListener
,PacketListener
@Environment(CLIENT)
public class ClientLoginNetworkHandler
extends Object
implements ClientLoginPacketListener
- Mappings:
Namespace Name named net/minecraft/client/network/ClientLoginNetworkHandler
intermediary net/minecraft/class_635
official gfi
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinecraftClient
private final ClientConnection
private final boolean
private static final Logger
private final boolean
private final Map
<Identifier, byte[]> private final @Nullable ServerInfo
private final AtomicReference
<ClientLoginNetworkHandler.State> -
Constructor Summary
ConstructorDescriptionClientLoginNetworkHandler
(ClientConnection connection, MinecraftClient client, @Nullable ServerInfo serverInfo, @Nullable Screen parentScreen, boolean newWorld, @Nullable Duration worldLoadTime, Consumer<Text> statusConsumer, @Nullable CookieStorage cookieStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomCrashReportInfo
(CrashReport report, CrashReportSection section) private com.mojang.authlib.minecraft.MinecraftSessionService
boolean
joinServerSession
(String serverId) void
void
void
onDisconnect
(LoginDisconnectS2CPacket packet) void
Called when the connection this listener listens to has disconnected.void
onHello
(LoginHelloS2CPacket packet) void
void
onSuccess
(LoginSuccessS2CPacket packet) void
setMinigameName
(@Nullable String minigameName) private void
setupEncryption
(LoginKeyC2SPacket keyPacket, Cipher decryptionCipher, Cipher encryptionCipher) private void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.listener.ClientLoginPacketListener
getPhase
Methods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSide
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, createDisconnectionInfo, fillCrashReport, onPacketException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/slf4j/Logger;
intermediary field_3710
Lnet/minecraft/class_635;field_3710:Lorg/slf4j/Logger;
official a
Lgfi;a:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/network/ClientLoginNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_3708
Lnet/minecraft/class_635;field_3708:Lnet/minecraft/class_310;
official b
Lgfi;b:Lfmf;
-
serverInfo
- Mappings:
Namespace Name Mixin selector named serverInfo
Lnet/minecraft/client/network/ClientLoginNetworkHandler;serverInfo:Lnet/minecraft/client/network/ServerInfo;
intermediary field_40481
Lnet/minecraft/class_635;field_40481:Lnet/minecraft/class_642;
official c
Lgfi;c:Lgfy;
-
parentScreen
- Mappings:
Namespace Name Mixin selector named parentScreen
Lnet/minecraft/client/network/ClientLoginNetworkHandler;parentScreen:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_3706
Lnet/minecraft/class_635;field_3706:Lnet/minecraft/class_437;
official d
Lgfi;d:Lftx;
-
statusConsumer
- Mappings:
Namespace Name Mixin selector named statusConsumer
Lnet/minecraft/client/network/ClientLoginNetworkHandler;statusConsumer:Ljava/util/function/Consumer;
intermediary field_3711
Lnet/minecraft/class_635;field_3711:Ljava/util/function/Consumer;
official e
Lgfi;e:Ljava/util/function/Consumer;
-
connection
- Mappings:
Namespace Name Mixin selector named connection
Lnet/minecraft/client/network/ClientLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
intermediary field_3707
Lnet/minecraft/class_635;field_3707:Lnet/minecraft/class_2535;
official f
Lgfi;f:Lwp;
-
newWorld
private final boolean newWorld- Mappings:
Namespace Name Mixin selector named newWorld
Lnet/minecraft/client/network/ClientLoginNetworkHandler;newWorld:Z
intermediary field_41383
Lnet/minecraft/class_635;field_41383:Z
official g
Lgfi;g:Z
-
worldLoadTime
- Mappings:
Namespace Name Mixin selector named worldLoadTime
Lnet/minecraft/client/network/ClientLoginNetworkHandler;worldLoadTime:Ljava/time/Duration;
intermediary field_41384
Lnet/minecraft/class_635;field_41384:Ljava/time/Duration;
official h
Lgfi;h:Ljava/time/Duration;
-
minigameName
- Mappings:
Namespace Name Mixin selector named minigameName
Lnet/minecraft/client/network/ClientLoginNetworkHandler;minigameName:Ljava/lang/String;
intermediary field_44809
Lnet/minecraft/class_635;field_44809:Ljava/lang/String;
official i
Lgfi;i:Ljava/lang/String;
-
serverCookies
- Mappings:
Namespace Name Mixin selector named serverCookies
Lnet/minecraft/client/network/ClientLoginNetworkHandler;serverCookies:Ljava/util/Map;
intermediary field_48400
Lnet/minecraft/class_635;field_48400:Ljava/util/Map;
official j
Lgfi;j:Ljava/util/Map;
-
hasCookies
private final boolean hasCookies- Mappings:
Namespace Name Mixin selector named hasCookies
Lnet/minecraft/client/network/ClientLoginNetworkHandler;hasCookies:Z
intermediary field_48401
Lnet/minecraft/class_635;field_48401:Z
official k
Lgfi;k:Z
-
state
- Mappings:
Namespace Name Mixin selector named state
Lnet/minecraft/client/network/ClientLoginNetworkHandler;state:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_46192
Lnet/minecraft/class_635;field_46192:Ljava/util/concurrent/atomic/AtomicReference;
official l
Lgfi;l:Ljava/util/concurrent/atomic/AtomicReference;
-
-
Constructor Details
-
ClientLoginNetworkHandler
public ClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, @Nullable @Nullable ServerInfo serverInfo, @Nullable @Nullable Screen parentScreen, boolean newWorld, @Nullable @Nullable Duration worldLoadTime, Consumer<Text> statusConsumer, @Nullable @Nullable CookieStorage cookieStorage) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/network/ClientLoginNetworkHandler;<init>(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerInfo;Lnet/minecraft/client/gui/screen/Screen;ZLjava/time/Duration;Ljava/util/function/Consumer;Lnet/minecraft/client/network/CookieStorage;)V
intermediary <init>
Lnet/minecraft/class_635;<init>(Lnet/minecraft/class_2535;Lnet/minecraft/class_310;Lnet/minecraft/class_642;Lnet/minecraft/class_437;ZLjava/time/Duration;Ljava/util/function/Consumer;Lnet/minecraft/class_9112;)V
official <init>
Lgfi;<init>(Lwp;Lfmf;Lgfy;Lftx;ZLjava/time/Duration;Ljava/util/function/Consumer;Lggc;)V
-
-
Method Details
-
switchTo
- Mappings:
Namespace Name Mixin selector named switchTo
Lnet/minecraft/client/network/ClientLoginNetworkHandler;switchTo(Lnet/minecraft/client/network/ClientLoginNetworkHandler$State;)V
intermediary method_53872
Lnet/minecraft/class_635;method_53872(Lnet/minecraft/class_635$class_8798;)V
official a
Lgfi;a(Lgfi$a;)V
-
onHello
- Specified by:
onHello
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector named onHello
Lnet/minecraft/network/listener/ClientLoginPacketListener;onHello(Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;)V
intermediary method_12587
Lnet/minecraft/class_2896;method_12587(Lnet/minecraft/class_2905;)V
official a
Laju;a(Lajw;)V
-
setupEncryption
private void setupEncryption(LoginKeyC2SPacket keyPacket, Cipher decryptionCipher, Cipher encryptionCipher) - Mappings:
Namespace Name Mixin selector named setupEncryption
Lnet/minecraft/client/network/ClientLoginNetworkHandler;setupEncryption(Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
intermediary method_56151
Lnet/minecraft/class_635;method_56151(Lnet/minecraft/class_2917;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
official a
Lgfi;a(Lakf;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
-
joinServerSession
- Mappings:
Namespace Name Mixin selector named joinServerSession
Lnet/minecraft/client/network/ClientLoginNetworkHandler;joinServerSession(Ljava/lang/String;)Lnet/minecraft/text/Text;
intermediary method_2892
Lnet/minecraft/class_635;method_2892(Ljava/lang/String;)Lnet/minecraft/class_2561;
official b
Lgfi;b(Ljava/lang/String;)Lxv;
-
getSessionService
private com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()- Mappings:
Namespace Name Mixin selector named getSessionService
Lnet/minecraft/client/network/ClientLoginNetworkHandler;getSessionService()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
intermediary method_2891
Lnet/minecraft/class_635;method_2891()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
official d
Lgfi;d()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
-
onSuccess
- Specified by:
onSuccess
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector named onSuccess
Lnet/minecraft/network/listener/ClientLoginPacketListener;onSuccess(Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;)V
intermediary method_12588
Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)V
official a
Laju;a(Lajz;)V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnected
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/network/DisconnectionInfo;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)V
official a
Lxb;a(Lwr;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpen
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named isConnectionOpen
Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
intermediary method_48106
Lnet/minecraft/class_2547;method_48106()Z
official c
Lxb;c()Z
-
onDisconnect
- Specified by:
onDisconnect
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector named onDisconnect
Lnet/minecraft/network/listener/ClientLoginPacketListener;onDisconnect(Lnet/minecraft/network/packet/s2c/login/LoginDisconnectS2CPacket;)V
intermediary method_12584
Lnet/minecraft/class_2896;method_12584(Lnet/minecraft/class_2909;)V
official a
Laju;a(Lajy;)V
-
onCompression
- Specified by:
onCompression
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector named onCompression
Lnet/minecraft/network/listener/ClientLoginPacketListener;onCompression(Lnet/minecraft/network/packet/s2c/login/LoginCompressionS2CPacket;)V
intermediary method_12585
Lnet/minecraft/class_2896;method_12585(Lnet/minecraft/class_2907;)V
official a
Laju;a(Lajx;)V
-
onQueryRequest
- Specified by:
onQueryRequest
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector named onQueryRequest
Lnet/minecraft/network/listener/ClientLoginPacketListener;onQueryRequest(Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;)V
intermediary method_12586
Lnet/minecraft/class_2896;method_12586(Lnet/minecraft/class_2899;)V
official a
Laju;a(Lajv;)V
-
setMinigameName
- Mappings:
Namespace Name Mixin selector named setMinigameName
Lnet/minecraft/client/network/ClientLoginNetworkHandler;setMinigameName(Ljava/lang/String;)V
intermediary method_51768
Lnet/minecraft/class_635;method_51768(Ljava/lang/String;)V
official a
Lgfi;a(Ljava/lang/String;)V
-
onCookieRequest
- Specified by:
onCookieRequest
in interfaceClientCookieRequestPacketListener
- Mappings:
Namespace Name Mixin selector named onCookieRequest
Lnet/minecraft/network/listener/ClientCookieRequestPacketListener;onCookieRequest(Lnet/minecraft/network/packet/s2c/common/CookieRequestS2CPacket;)V
intermediary method_55845
Lnet/minecraft/class_9087;method_55845(Lnet/minecraft/class_9088;)V
official a
Lacl;a(Lacm;)V
-
addCustomCrashReportInfo
- Specified by:
addCustomCrashReportInfo
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named addCustomCrashReportInfo
Lnet/minecraft/network/listener/PacketListener;addCustomCrashReportInfo(Lnet/minecraft/util/crash/CrashReport;Lnet/minecraft/util/crash/CrashReportSection;)V
intermediary method_55597
Lnet/minecraft/class_2547;method_55597(Lnet/minecraft/class_128;Lnet/minecraft/class_129;)V
official a
Lxb;a(Lo;Lp;)V
-