public class ClientLoginNetHandler extends java.lang.Object implements IClientLoginNetHandler
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 Screen |
previousGuiScreen |
private java.util.function.Consumer<ITextComponent> |
statusMessageConsumer |
Constructor and Description |
---|
ClientLoginNetHandler(NetworkManager networkManagerIn,
Minecraft mcIn,
Screen previousScreen,
java.util.function.Consumer<ITextComponent> statusMessageConsumerIn) |
Modifier and Type | Method and Description |
---|---|
NetworkManager |
getNetworkManager() |
private com.mojang.authlib.minecraft.MinecraftSessionService |
getSessionService() |
void |
handleCustomPayloadLogin(SCustomPayloadLoginPacket packetIn) |
void |
handleDisconnect(SDisconnectLoginPacket packetIn) |
void |
handleEnableCompression(SEnableCompressionPacket packetIn) |
void |
handleEncryptionRequest(SEncryptionRequestPacket packetIn) |
void |
handleLoginSuccess(SLoginSuccessPacket packetIn) |
private ITextComponent |
joinServer(java.lang.String serverHash) |
void |
onDisconnect(ITextComponent reason) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
@Nullable private final Screen previousGuiScreen
private final java.util.function.Consumer<ITextComponent> statusMessageConsumer
private final NetworkManager networkManager
private com.mojang.authlib.GameProfile gameProfile
public ClientLoginNetHandler(NetworkManager networkManagerIn, Minecraft mcIn, @Nullable Screen previousScreen, java.util.function.Consumer<ITextComponent> statusMessageConsumerIn)
public void handleEncryptionRequest(SEncryptionRequestPacket packetIn)
handleEncryptionRequest
in interface IClientLoginNetHandler
@Nullable private ITextComponent joinServer(java.lang.String serverHash)
private com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()
public void handleLoginSuccess(SLoginSuccessPacket packetIn)
handleLoginSuccess
in interface IClientLoginNetHandler
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public NetworkManager getNetworkManager()
getNetworkManager
in interface INetHandler
public void handleDisconnect(SDisconnectLoginPacket packetIn)
handleDisconnect
in interface IClientLoginNetHandler
public void handleEnableCompression(SEnableCompressionPacket packetIn)
handleEnableCompression
in interface IClientLoginNetHandler
public void handleCustomPayloadLogin(SCustomPayloadLoginPacket packetIn)
handleCustomPayloadLogin
in interface IClientLoginNetHandler