public class ServerLoginNetHandler extends java.lang.Object implements IServerLoginNetHandler
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ServerLoginNetHandler.State |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.concurrent.atomic.AtomicInteger |
AUTHENTICATOR_THREAD_ID |
private int |
connectionTimer |
private ServerLoginNetHandler.State |
currentLoginState |
private static org.apache.logging.log4j.Logger |
LOGGER |
private com.mojang.authlib.GameProfile |
loginGameProfile |
NetworkManager |
networkManager |
private ServerPlayerEntity |
player |
private static java.util.Random |
RANDOM |
private javax.crypto.SecretKey |
secretKey |
private MinecraftServer |
server |
private java.lang.String |
serverId |
private byte[] |
verifyToken |
| Constructor and Description |
|---|
ServerLoginNetHandler(MinecraftServer serverIn,
NetworkManager networkManagerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(ITextComponent reason) |
java.lang.String |
getConnectionInfo() |
NetworkManager |
getNetworkManager() |
protected com.mojang.authlib.GameProfile |
getOfflineProfile(com.mojang.authlib.GameProfile original) |
void |
onDisconnect(ITextComponent reason) |
void |
processCustomPayloadLogin(CCustomPayloadLoginPacket p_209526_1_) |
void |
processEncryptionResponse(CEncryptionResponsePacket packetIn) |
void |
processLoginStart(CLoginStartPacket packetIn) |
void |
tick() |
void |
tryAcceptPlayer() |
private static final java.util.concurrent.atomic.AtomicInteger AUTHENTICATOR_THREAD_ID
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Random RANDOM
private final byte[] verifyToken
private final MinecraftServer server
public final NetworkManager networkManager
private ServerLoginNetHandler.State currentLoginState
private int connectionTimer
private com.mojang.authlib.GameProfile loginGameProfile
private final java.lang.String serverId
private javax.crypto.SecretKey secretKey
private ServerPlayerEntity player
public ServerLoginNetHandler(MinecraftServer serverIn, NetworkManager networkManagerIn)
public void tick()
public NetworkManager getNetworkManager()
getNetworkManager in interface INetHandlerpublic void disconnect(ITextComponent reason)
public void tryAcceptPlayer()
public void onDisconnect(ITextComponent reason)
onDisconnect in interface INetHandlerpublic java.lang.String getConnectionInfo()
public void processLoginStart(CLoginStartPacket packetIn)
processLoginStart in interface IServerLoginNetHandlerpublic void processEncryptionResponse(CEncryptionResponsePacket packetIn)
processEncryptionResponse in interface IServerLoginNetHandlerpublic void processCustomPayloadLogin(CCustomPayloadLoginPacket p_209526_1_)
processCustomPayloadLogin in interface IServerLoginNetHandlerprotected com.mojang.authlib.GameProfile getOfflineProfile(com.mojang.authlib.GameProfile original)