public class NetHandlerLoginServer extends java.lang.Object implements INetHandlerLoginServer, ITickable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NetHandlerLoginServer.LoginState |
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.atomic.AtomicInteger |
AUTHENTICATOR_THREAD_ID |
private int |
connectionTimer |
private NetHandlerLoginServer.LoginState |
currentLoginState |
private static org.apache.logging.log4j.Logger |
LOGGER |
private com.mojang.authlib.GameProfile |
loginGameProfile |
NetworkManager |
networkManager |
private EntityPlayerMP |
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 |
---|
NetHandlerLoginServer(MinecraftServer serverIn,
NetworkManager networkManagerIn) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect(ITextComponent reason) |
java.lang.String |
getConnectionInfo() |
protected com.mojang.authlib.GameProfile |
getOfflineProfile(com.mojang.authlib.GameProfile original) |
void |
onDisconnect(ITextComponent reason) |
void |
processEncryptionResponse(CPacketEncryptionResponse packetIn) |
void |
processLoginStart(CPacketLoginStart packetIn) |
void |
tryAcceptPlayer() |
void |
update() |
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 NetHandlerLoginServer.LoginState currentLoginState
private int connectionTimer
private com.mojang.authlib.GameProfile loginGameProfile
private final java.lang.String serverId
private javax.crypto.SecretKey secretKey
private EntityPlayerMP player
public NetHandlerLoginServer(MinecraftServer serverIn, NetworkManager networkManagerIn)
public void disconnect(ITextComponent reason)
public void tryAcceptPlayer()
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public java.lang.String getConnectionInfo()
public void processLoginStart(CPacketLoginStart packetIn)
processLoginStart
in interface INetHandlerLoginServer
public void processEncryptionResponse(CPacketEncryptionResponse packetIn)
processEncryptionResponse
in interface INetHandlerLoginServer
protected com.mojang.authlib.GameProfile getOfflineProfile(com.mojang.authlib.GameProfile original)