public class NetHandlerLoginClient extends java.lang.Object implements INetHandlerLoginClient
Modifier and Type | Field and Description |
---|---|
private com.mojang.authlib.GameProfile |
gameProfile |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Minecraft |
mc |
private NetworkManager |
networkManager |
private GuiScreen |
previousGuiScreen |
Constructor and Description |
---|
NetHandlerLoginClient(NetworkManager networkManagerIn,
Minecraft mcIn,
GuiScreen previousScreenIn) |
Modifier and Type | Method and Description |
---|---|
private com.mojang.authlib.minecraft.MinecraftSessionService |
getSessionService() |
void |
handleDisconnect(SPacketDisconnect packetIn) |
void |
handleEnableCompression(SPacketEnableCompression packetIn) |
void |
handleEncryptionRequest(SPacketEncryptionRequest packetIn) |
void |
handleLoginSuccess(SPacketLoginSuccess packetIn) |
void |
onDisconnect(ITextComponent reason) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
@Nullable private final GuiScreen previousGuiScreen
private final NetworkManager networkManager
private com.mojang.authlib.GameProfile gameProfile
public NetHandlerLoginClient(NetworkManager networkManagerIn, Minecraft mcIn, @Nullable GuiScreen previousScreenIn)
public void handleEncryptionRequest(SPacketEncryptionRequest packetIn)
handleEncryptionRequest
in interface INetHandlerLoginClient
private com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()
public void handleLoginSuccess(SPacketLoginSuccess packetIn)
handleLoginSuccess
in interface INetHandlerLoginClient
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public void handleDisconnect(SPacketDisconnect packetIn)
handleDisconnect
in interface INetHandlerLoginClient
public void handleEnableCompression(SPacketEnableCompression packetIn)
handleEnableCompression
in interface INetHandlerLoginClient