Class ClientLoginNetHandler
- java.lang.Object
-
- net.minecraft.client.network.login.ClientLoginNetHandler
-
- All Implemented Interfaces:
IClientLoginNetHandler
,INetHandler
public class ClientLoginNetHandler extends java.lang.Object implements IClientLoginNetHandler
-
-
Field Summary
Fields Modifier and Type Field Description private NetworkManager
connection
private com.mojang.authlib.GameProfile
localGameProfile
private static org.apache.logging.log4j.Logger
LOGGER
private Minecraft
minecraft
private Screen
parent
private java.util.function.Consumer<ITextComponent>
updateStatus
-
Constructor Summary
Constructors Constructor Description ClientLoginNetHandler(NetworkManager p_i49527_1_, Minecraft p_i49527_2_, Screen p_i49527_3_, java.util.function.Consumer<ITextComponent> p_i49527_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ITextComponent
authenticateServer(java.lang.String p_209522_1_)
NetworkManager
getConnection()
private com.mojang.authlib.minecraft.MinecraftSessionService
getMinecraftSessionService()
void
handleCompression(SEnableCompressionPacket p_180464_1_)
void
handleCustomQuery(SCustomPayloadLoginPacket p_209521_1_)
void
handleDisconnect(SDisconnectLoginPacket p_147388_1_)
void
handleGameProfile(SLoginSuccessPacket p_147390_1_)
void
handleHello(SEncryptionRequestPacket p_147389_1_)
void
onDisconnect(ITextComponent p_147231_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
minecraft
private final Minecraft minecraft
-
parent
@Nullable private final Screen parent
-
updateStatus
private final java.util.function.Consumer<ITextComponent> updateStatus
-
connection
private final NetworkManager connection
-
localGameProfile
private com.mojang.authlib.GameProfile localGameProfile
-
-
Constructor Detail
-
ClientLoginNetHandler
public ClientLoginNetHandler(NetworkManager p_i49527_1_, Minecraft p_i49527_2_, @Nullable Screen p_i49527_3_, java.util.function.Consumer<ITextComponent> p_i49527_4_)
-
-
Method Detail
-
handleHello
public void handleHello(SEncryptionRequestPacket p_147389_1_)
- Specified by:
handleHello
in interfaceIClientLoginNetHandler
-
authenticateServer
@Nullable private ITextComponent authenticateServer(java.lang.String p_209522_1_)
-
getMinecraftSessionService
private com.mojang.authlib.minecraft.MinecraftSessionService getMinecraftSessionService()
-
handleGameProfile
public void handleGameProfile(SLoginSuccessPacket p_147390_1_)
- Specified by:
handleGameProfile
in interfaceIClientLoginNetHandler
-
onDisconnect
public void onDisconnect(ITextComponent p_147231_1_)
- Specified by:
onDisconnect
in interfaceINetHandler
-
getConnection
public NetworkManager getConnection()
- Specified by:
getConnection
in interfaceINetHandler
-
handleDisconnect
public void handleDisconnect(SDisconnectLoginPacket p_147388_1_)
- Specified by:
handleDisconnect
in interfaceIClientLoginNetHandler
-
handleCompression
public void handleCompression(SEnableCompressionPacket p_180464_1_)
- Specified by:
handleCompression
in interfaceIClientLoginNetHandler
-
handleCustomQuery
public void handleCustomQuery(SCustomPayloadLoginPacket p_209521_1_)
- Specified by:
handleCustomQuery
in interfaceIClientLoginNetHandler
-
-