Package net.minecraft.client.network
Class ClientLoginNetworkHandler
java.lang.Object
net.minecraft.client.network.ClientLoginNetworkHandler
- All Implemented Interfaces:
ClientLoginPacketListener
,ClientPacketListener
,PacketListener
@Environment(CLIENT)
public class ClientLoginNetworkHandler
extends Object
implements ClientLoginPacketListener
- Mappings:
Namespace Name official fiw
intermediary net/minecraft/class_635
named net/minecraft/client/network/ClientLoginNetworkHandler
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinecraftClient
private final ClientConnection
private static final Logger
private final boolean
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) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.mojang.authlib.minecraft.MinecraftSessionService
boolean
joinServerSession
(String serverId) void
void
onDisconnect
(LoginDisconnectS2CPacket packet) void
onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
onHello
(LoginHelloS2CPacket packet) void
void
onSuccess
(LoginSuccessS2CPacket packet) void
setMinigameName
(String minigameName) 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
getState
Methods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSide
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, shouldCrashOnException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lfiw;a:Lorg/slf4j/Logger;
intermediary field_3710
Lnet/minecraft/class_635;field_3710:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/network/ClientLoginNetworkHandler;LOGGER:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector official b
Lfiw;b:Leqv;
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;
-
serverInfo
- Mappings:
Namespace Name Mixin selector official c
Lfiw;c:Lfjh;
intermediary field_40481
Lnet/minecraft/class_635;field_40481:Lnet/minecraft/class_642;
named serverInfo
Lnet/minecraft/client/network/ClientLoginNetworkHandler;serverInfo:Lnet/minecraft/client/network/ServerInfo;
-
parentScreen
- Mappings:
Namespace Name Mixin selector official d
Lfiw;d:Leyk;
intermediary field_3706
Lnet/minecraft/class_635;field_3706:Lnet/minecraft/class_437;
named parentScreen
Lnet/minecraft/client/network/ClientLoginNetworkHandler;parentScreen:Lnet/minecraft/client/gui/screen/Screen;
-
statusConsumer
- Mappings:
Namespace Name Mixin selector official e
Lfiw;e: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 f
Lfiw;f:Lsm;
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;
-
newWorld
private final boolean newWorld- Mappings:
Namespace Name Mixin selector official g
Lfiw;g:Z
intermediary field_41383
Lnet/minecraft/class_635;field_41383:Z
named newWorld
Lnet/minecraft/client/network/ClientLoginNetworkHandler;newWorld:Z
-
worldLoadTime
- Mappings:
Namespace Name Mixin selector official h
Lfiw;h:Ljava/time/Duration;
intermediary field_41384
Lnet/minecraft/class_635;field_41384:Ljava/time/Duration;
named worldLoadTime
Lnet/minecraft/client/network/ClientLoginNetworkHandler;worldLoadTime:Ljava/time/Duration;
-
minigameName
- Mappings:
Namespace Name Mixin selector official i
Lfiw;i:Ljava/lang/String;
intermediary field_44809
Lnet/minecraft/class_635;field_44809:Ljava/lang/String;
named minigameName
Lnet/minecraft/client/network/ClientLoginNetworkHandler;minigameName:Ljava/lang/String;
-
state
- Mappings:
Namespace Name Mixin selector official j
Lfiw;j:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_46192
Lnet/minecraft/class_635;field_46192:Ljava/util/concurrent/atomic/AtomicReference;
named state
Lnet/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) - Mappings:
Namespace Name Mixin selector official <init>
Lfiw;<init>(Lsm;Leqv;Lfjh;Leyk;ZLjava/time/Duration;Ljava/util/function/Consumer;)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;)V
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;)V
-
-
Method Details
-
switchTo
- Mappings:
Namespace Name Mixin selector official a
Lfiw;a(Lfiw$a;)V
intermediary method_53872
Lnet/minecraft/class_635;method_53872(Lnet/minecraft/class_635$class_8798;)V
named switchTo
Lnet/minecraft/client/network/ClientLoginNetworkHandler;switchTo(Lnet/minecraft/client/network/ClientLoginNetworkHandler$State;)V
-
onHello
- Specified by:
onHello
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Lade;a(Ladh;)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 b
Lfiw;b(Ljava/lang/String;)Ltl;
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 e
Lfiw;e()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;
-
onSuccess
- Specified by:
onSuccess
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Lade;a(Ladg;)V
intermediary method_12588
Lnet/minecraft/class_2896;method_12588(Lnet/minecraft/class_2901;)V
named onSuccess
Lnet/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:
onDisconnected
in interfacePacketListener
- Parameters:
reason
- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official a
Lsu;a(Ltl;)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
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpen
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector official c
Lsu;c()Z
intermediary method_48106
Lnet/minecraft/class_2547;method_48106()Z
named isConnectionOpen
Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
onDisconnect
- Specified by:
onDisconnect
in interfaceClientLoginPacketListener
- Mappings:
Namespace Name Mixin selector official a
Lade;a(Ladj;)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
Lade;a(Ladi;)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
Lade;a(Ladf;)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
-
setMinigameName
- Mappings:
Namespace Name Mixin selector official a
Lfiw;a(Ljava/lang/String;)V
intermediary method_51768
Lnet/minecraft/class_635;method_51768(Ljava/lang/String;)V
named setMinigameName
Lnet/minecraft/client/network/ClientLoginNetworkHandler;setMinigameName(Ljava/lang/String;)V
-