Package net.minecraft.network.login
Class ServerLoginNetHandler
- java.lang.Object
-
- net.minecraft.network.login.ServerLoginNetHandler
-
- All Implemented Interfaces:
INetHandler
,IServerLoginNetHandler
public class ServerLoginNetHandler extends java.lang.Object implements IServerLoginNetHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ServerLoginNetHandler.State
-
Field Summary
Fields Modifier and Type Field Description NetworkManager
connection
private ServerPlayerEntity
delayedAcceptPlayer
private com.mojang.authlib.GameProfile
gameProfile
private static org.apache.logging.log4j.Logger
LOGGER
private byte[]
nonce
private static java.util.Random
RANDOM
private javax.crypto.SecretKey
secretKey
private MinecraftServer
server
private java.lang.String
serverId
private ServerLoginNetHandler.State
state
private int
tick
private static java.util.concurrent.atomic.AtomicInteger
UNIQUE_THREAD_ID
-
Constructor Summary
Constructors Constructor Description ServerLoginNetHandler(MinecraftServer p_i45298_1_, NetworkManager p_i45298_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mojang.authlib.GameProfile
createFakeProfile(com.mojang.authlib.GameProfile p_152506_1_)
void
disconnect(ITextComponent p_194026_1_)
NetworkManager
getConnection()
java.lang.String
getUserName()
void
handleAcceptedLogin()
void
handleCustomQueryPacket(CCustomPayloadLoginPacket p_209526_1_)
void
handleHello(CLoginStartPacket p_147316_1_)
void
handleKey(CEncryptionResponsePacket p_147315_1_)
void
onDisconnect(ITextComponent p_147231_1_)
void
tick()
-
-
-
Field Detail
-
UNIQUE_THREAD_ID
private static final java.util.concurrent.atomic.AtomicInteger UNIQUE_THREAD_ID
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
RANDOM
private static final java.util.Random RANDOM
-
nonce
private final byte[] nonce
-
server
private final MinecraftServer server
-
connection
public final NetworkManager connection
-
state
private ServerLoginNetHandler.State state
-
tick
private int tick
-
gameProfile
private com.mojang.authlib.GameProfile gameProfile
-
serverId
private final java.lang.String serverId
- See Also:
- Constant Field Values
-
secretKey
private javax.crypto.SecretKey secretKey
-
delayedAcceptPlayer
private ServerPlayerEntity delayedAcceptPlayer
-
-
Constructor Detail
-
ServerLoginNetHandler
public ServerLoginNetHandler(MinecraftServer p_i45298_1_, NetworkManager p_i45298_2_)
-
-
Method Detail
-
tick
public void tick()
-
getConnection
public NetworkManager getConnection()
- Specified by:
getConnection
in interfaceINetHandler
-
disconnect
public void disconnect(ITextComponent p_194026_1_)
-
handleAcceptedLogin
public void handleAcceptedLogin()
-
onDisconnect
public void onDisconnect(ITextComponent p_147231_1_)
- Specified by:
onDisconnect
in interfaceINetHandler
-
getUserName
public java.lang.String getUserName()
-
handleHello
public void handleHello(CLoginStartPacket p_147316_1_)
- Specified by:
handleHello
in interfaceIServerLoginNetHandler
-
handleKey
public void handleKey(CEncryptionResponsePacket p_147315_1_)
- Specified by:
handleKey
in interfaceIServerLoginNetHandler
-
handleCustomQueryPacket
public void handleCustomQueryPacket(CCustomPayloadLoginPacket p_209526_1_)
- Specified by:
handleCustomQueryPacket
in interfaceIServerLoginNetHandler
-
createFakeProfile
protected com.mojang.authlib.GameProfile createFakeProfile(com.mojang.authlib.GameProfile p_152506_1_)
-
-