Package net.minecraft.network.login
Class ServerLoginNetHandler
java.lang.Object
net.minecraft.network.login.ServerLoginNetHandler
- All Implemented Interfaces:
INetHandler
,IServerLoginNetHandler
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal NetworkManager
private ServerPlayerEntity
private com.mojang.authlib.GameProfile
private static final org.apache.logging.log4j.Logger
private final byte[]
private static final Random
private SecretKey
private final MinecraftServer
private final String
private ServerLoginNetHandler.State
private int
private static final AtomicInteger
-
Constructor Summary
ConstructorDescriptionServerLoginNetHandler
(MinecraftServer p_i45298_1_, NetworkManager p_i45298_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.authlib.GameProfile
createFakeProfile
(com.mojang.authlib.GameProfile p_152506_1_) void
disconnect
(ITextComponent p_194026_1_) void
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 Details
-
UNIQUE_THREAD_ID
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
RANDOM
-
nonce
private final byte[] nonce -
server
-
connection
-
state
-
tick
private int tick -
gameProfile
private com.mojang.authlib.GameProfile gameProfile -
serverId
- See Also:
-
secretKey
-
delayedAcceptPlayer
-
-
Constructor Details
-
ServerLoginNetHandler
-
-
Method Details
-
tick
public void tick() -
getConnection
- Specified by:
getConnection
in interfaceINetHandler
-
disconnect
-
handleAcceptedLogin
public void handleAcceptedLogin() -
onDisconnect
- Specified by:
onDisconnect
in interfaceINetHandler
-
getUserName
-
handleHello
- Specified by:
handleHello
in interfaceIServerLoginNetHandler
-
handleKey
- Specified by:
handleKey
in interfaceIServerLoginNetHandler
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacket
in interfaceIServerLoginNetHandler
-
createFakeProfile
protected com.mojang.authlib.GameProfile createFakeProfile(com.mojang.authlib.GameProfile p_152506_1_)
-