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 official fpwintermediary net/minecraft/class_635named net/minecraft/client/network/ClientLoginNetworkHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate final ClientConnectionprivate final booleanprivate static final Loggerprivate final booleanprivate final Map<Identifier,byte[]> private final @Nullable ServerInfoprivate final AtomicReference<ClientLoginNetworkHandler.State> -
Constructor Summary
ConstructorsConstructorDescriptionClientLoginNetworkHandler(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 TypeMethodDescriptionvoidprivate com.mojang.authlib.minecraft.MinecraftSessionServicebooleanjoinServerSession(String serverId) voidvoidvoidonDisconnect(LoginDisconnectS2CPacket packet) voidonDisconnected(Text reason) Called when the connection this listener listens to has disconnected.voidonHello(LoginHelloS2CPacket packet) voidvoidonSuccess(LoginSuccessS2CPacket packet) voidsetMinigameName(@Nullable String minigameName) private voidsetupEncryption(LoginKeyC2SPacket keyPacket, Cipher decryptionCipher, Cipher encryptionCipher) private voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.listener.ClientLoginPacketListener
getPhaseMethods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSideMethods inherited from interface net.minecraft.network.listener.PacketListener
accepts, fillCrashReport, shouldCrashOnException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLfpw;a:Lorg/slf4j/Logger;intermediary field_3710Lnet/minecraft/class_635;field_3710:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector official bLfpw;b:Lexh;intermediary field_3708Lnet/minecraft/class_635;field_3708:Lnet/minecraft/class_310;named clientLnet/minecraft/client/network/ClientLoginNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
-
serverInfo
- Mappings:
Namespace Name Mixin selector official cLfpw;c:Lfqi;intermediary field_40481Lnet/minecraft/class_635;field_40481:Lnet/minecraft/class_642;named serverInfoLnet/minecraft/client/network/ClientLoginNetworkHandler;serverInfo:Lnet/minecraft/client/network/ServerInfo;
-
parentScreen
- Mappings:
Namespace Name Mixin selector official dLfpw;d:Lffe;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
- Mappings:
Namespace Name Mixin selector official eLfpw;e: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
- Mappings:
Namespace Name Mixin selector official fLfpw;f:Luo;intermediary field_3707Lnet/minecraft/class_635;field_3707:Lnet/minecraft/class_2535;named connectionLnet/minecraft/client/network/ClientLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
newWorld
private final boolean newWorld- Mappings:
Namespace Name Mixin selector official gLfpw;g:Zintermediary field_41383Lnet/minecraft/class_635;field_41383:Znamed newWorldLnet/minecraft/client/network/ClientLoginNetworkHandler;newWorld:Z
-
worldLoadTime
- Mappings:
Namespace Name Mixin selector official hLfpw;h:Ljava/time/Duration;intermediary field_41384Lnet/minecraft/class_635;field_41384:Ljava/time/Duration;named worldLoadTimeLnet/minecraft/client/network/ClientLoginNetworkHandler;worldLoadTime:Ljava/time/Duration;
-
minigameName
- Mappings:
Namespace Name Mixin selector official iLfpw;i:Ljava/lang/String;intermediary field_44809Lnet/minecraft/class_635;field_44809:Ljava/lang/String;named minigameNameLnet/minecraft/client/network/ClientLoginNetworkHandler;minigameName:Ljava/lang/String;
-
serverCookies
- Mappings:
Namespace Name Mixin selector official jLfpw;j:Ljava/util/Map;intermediary field_48400Lnet/minecraft/class_635;field_48400:Ljava/util/Map;named serverCookiesLnet/minecraft/client/network/ClientLoginNetworkHandler;serverCookies:Ljava/util/Map;
-
hasCookies
private final boolean hasCookies- Mappings:
Namespace Name Mixin selector official kLfpw;k:Zintermediary field_48401Lnet/minecraft/class_635;field_48401:Znamed hasCookiesLnet/minecraft/client/network/ClientLoginNetworkHandler;hasCookies:Z
-
state
- Mappings:
Namespace Name Mixin selector official lLfpw;l:Ljava/util/concurrent/atomic/AtomicReference;intermediary field_46192Lnet/minecraft/class_635;field_46192:Ljava/util/concurrent/atomic/AtomicReference;named stateLnet/minecraft/client/network/ClientLoginNetworkHandler;state: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 official <init>Lfpw;<init>(Luo;Lexh;Lfqi;Lffe;ZLjava/time/Duration;Ljava/util/function/Consumer;Lfql;)Vintermediary <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;)Vnamed <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
-
-
Method Details
-
switchTo
- Mappings:
Namespace Name Mixin selector official aLfpw;a(Lfpw$a;)Vintermediary method_53872Lnet/minecraft/class_635;method_53872(Lnet/minecraft/class_635$class_8798;)Vnamed switchToLnet/minecraft/client/network/ClientLoginNetworkHandler;switchTo(Lnet/minecraft/client/network/ClientLoginNetworkHandler$State;)V
-
onHello
- Specified by:
onHelloin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLagw;a(Lagz;)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
-
setupEncryption
private void setupEncryption(LoginKeyC2SPacket keyPacket, Cipher decryptionCipher, Cipher encryptionCipher) - Mappings:
Namespace Name Mixin selector official aLfpw;a(Lahh;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vintermediary method_56151Lnet/minecraft/class_635;method_56151(Lnet/minecraft/class_2917;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vnamed setupEncryptionLnet/minecraft/client/network/ClientLoginNetworkHandler;setupEncryption(Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
-
joinServerSession
- Mappings:
Namespace Name Mixin selector official bLfpw;b(Ljava/lang/String;)Lvq;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 eLfpw;e()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;
-
onSuccess
- Specified by:
onSuccessin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLagw;a(Lagy;)Vintermediary method_12588Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)Vnamed onSuccessLnet/minecraft/network/listener/ClientLoginPacketListener;onSuccess(Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;)V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnectedin interfacePacketListener- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLuw;a(Lvq;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector official cLuw;c()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Znamed isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
onDisconnect
- Specified by:
onDisconnectin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLagw;a(Lahb;)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
- Specified by:
onCompressionin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLagw;a(Laha;)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
- Specified by:
onQueryRequestin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLagw;a(Lagx;)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
-
setMinigameName
- Mappings:
Namespace Name Mixin selector official aLfpw;a(Ljava/lang/String;)Vintermediary method_51768Lnet/minecraft/class_635;method_51768(Ljava/lang/String;)Vnamed setMinigameNameLnet/minecraft/client/network/ClientLoginNetworkHandler;setMinigameName(Ljava/lang/String;)V
-
onCookieRequest
- Specified by:
onCookieRequestin interfaceClientCookieRequestPacketListener- Mappings:
Namespace Name Mixin selector official aLaaa;a(Laab;)Vintermediary method_55845Lnet/minecraft/class_9087;method_55845(Lnet/minecraft/class_9088;)Vnamed onCookieRequestLnet/minecraft/network/listener/ClientCookieRequestPacketListener;onCookieRequest(Lnet/minecraft/network/packet/s2c/common/CookieRequestS2CPacket;)V
-
addCustomCrashReportInfo
- Specified by:
addCustomCrashReportInfoin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLuw;a(Lp;)Vintermediary method_55597Lnet/minecraft/class_2547;method_55597(Lnet/minecraft/class_129;)Vnamed addCustomCrashReportInfoLnet/minecraft/network/listener/PacketListener;addCustomCrashReportInfo(Lnet/minecraft/util/crash/CrashReportSection;)V
-