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 intermediary net/minecraft/class_635official feknamed net/minecraft/client/network/ClientLoginNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate final ClientConnectionprivate static final Loggerprivate final booleanprivate com.mojang.authlib.GameProfileprivate final @Nullable ServerInfo -
Constructor Summary
ConstructorsConstructorDescriptionClientLoginNetworkHandler(ClientConnection connection, MinecraftClient client, @Nullable ServerInfo serverInfo, @Nullable Screen parentScreen, boolean newWorld, @Nullable Duration worldLoadTime, Consumer<Text> statusConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.mojang.authlib.minecraft.MinecraftSessionServicebooleanjoinServerSession(String serverId) voidvoidonDisconnect(LoginDisconnectS2CPacket packet) voidonDisconnected(Text reason) Called when the connection this listener listens to has disconnected.voidonHello(LoginHelloS2CPacket packet) voidvoidonSuccess(LoginSuccessS2CPacket packet) voidsetMinigameName(String minigameName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.listener.PacketListener
shouldCrashOnException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector intermediary field_3710Lnet/minecraft/class_635;field_3710:Lorg/slf4j/Logger;official aLfek;a:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector intermediary field_3708Lnet/minecraft/class_635;field_3708:Lnet/minecraft/class_310;official bLfek;b:Lenf;named clientLnet/minecraft/client/network/ClientLoginNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
-
serverInfo
- Mappings:
Namespace Name Mixin selector intermediary field_40481Lnet/minecraft/class_635;field_40481:Lnet/minecraft/class_642;official cLfek;c:Lfes;named serverInfoLnet/minecraft/client/network/ClientLoginNetworkHandler;serverInfo:Lnet/minecraft/client/network/ServerInfo;
-
parentScreen
- Mappings:
Namespace Name Mixin selector intermediary field_3706Lnet/minecraft/class_635;field_3706:Lnet/minecraft/class_437;official dLfek;d:Leug;named parentScreenLnet/minecraft/client/network/ClientLoginNetworkHandler;parentScreen:Lnet/minecraft/client/gui/screen/Screen;
-
statusConsumer
- Mappings:
Namespace Name Mixin selector intermediary field_3711Lnet/minecraft/class_635;field_3711:Ljava/util/function/Consumer;official eLfek;e:Ljava/util/function/Consumer;named statusConsumerLnet/minecraft/client/network/ClientLoginNetworkHandler;statusConsumer:Ljava/util/function/Consumer;
-
connection
- Mappings:
Namespace Name Mixin selector intermediary field_3707Lnet/minecraft/class_635;field_3707:Lnet/minecraft/class_2535;official fLfek;f:Lsd;named connectionLnet/minecraft/client/network/ClientLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
profile
private com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector intermediary field_3709Lnet/minecraft/class_635;field_3709:Lcom/mojang/authlib/GameProfile;official gLfek;g:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/client/network/ClientLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
newWorld
private final boolean newWorld- Mappings:
Namespace Name Mixin selector intermediary field_41383Lnet/minecraft/class_635;field_41383:Zofficial hLfek;h:Znamed newWorldLnet/minecraft/client/network/ClientLoginNetworkHandler;newWorld:Z
-
worldLoadTime
- Mappings:
Namespace Name Mixin selector intermediary field_41384Lnet/minecraft/class_635;field_41384:Ljava/time/Duration;official iLfek;i:Ljava/time/Duration;named worldLoadTimeLnet/minecraft/client/network/ClientLoginNetworkHandler;worldLoadTime:Ljava/time/Duration;
-
minigameName
- Mappings:
Namespace Name Mixin selector intermediary field_44809Lnet/minecraft/class_635;field_44809:Ljava/lang/String;official jLfek;j:Ljava/lang/String;named minigameNameLnet/minecraft/client/network/ClientLoginNetworkHandler;minigameName:Ljava/lang/String;
-
-
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) - Mappings:
Namespace Name Mixin selector 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;)Vofficial <init>Lfek;<init>(Lsd;Lenf;Lfes;Leug;ZLjava/time/Duration;Ljava/util/function/Consumer;)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;)V
-
-
Method Details
-
onHello
- Specified by:
onHelloin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector intermediary method_12587Lnet/minecraft/class_2896;method_12587(Lnet/minecraft/class_2905;)Vofficial aLabe;a(Labh;)Vnamed onHelloLnet/minecraft/network/listener/ClientLoginPacketListener;onHello(Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;)V
-
joinServerSession
- Mappings:
Namespace Name Mixin selector intermediary method_2892Lnet/minecraft/class_635;method_2892(Ljava/lang/String;)Lnet/minecraft/class_2561;official bLfek;b(Ljava/lang/String;)Lsw;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 intermediary method_2891Lnet/minecraft/class_635;method_2891()Lcom/mojang/authlib/minecraft/MinecraftSessionService;official cLfek;c()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 intermediary method_12588Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)Vofficial aLabe;a(Labg;)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 intermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vofficial aLsk;a(Lsw;)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 intermediary method_48106Lnet/minecraft/class_2547;method_48106()Zofficial aLsk;a()Znamed isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
onDisconnect
- Specified by:
onDisconnectin interfaceClientLoginPacketListener- Mappings:
Namespace Name Mixin selector intermediary method_12584Lnet/minecraft/class_2896;method_12584(Lnet/minecraft/class_2909;)Vofficial aLabe;a(Labj;)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 intermediary method_12585Lnet/minecraft/class_2896;method_12585(Lnet/minecraft/class_2907;)Vofficial aLabe;a(Labi;)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 intermediary method_12586Lnet/minecraft/class_2896;method_12586(Lnet/minecraft/class_2899;)Vofficial aLabe;a(Labf;)Vnamed onQueryRequestLnet/minecraft/network/listener/ClientLoginPacketListener;onQueryRequest(Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;)V
-
setMinigameName
- Mappings:
Namespace Name Mixin selector intermediary method_51768Lnet/minecraft/class_635;method_51768(Ljava/lang/String;)Vofficial aLfek;a(Ljava/lang/String;)Vnamed setMinigameNameLnet/minecraft/client/network/ClientLoginNetworkHandler;setMinigameName(Ljava/lang/String;)V
-