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
How long has player been trying to login into the server.
|
private NetHandlerLoginServer.LoginState |
currentLoginState |
private EntityPlayerMP |
field_181025_l |
private static org.apache.logging.log4j.Logger |
logger |
private com.mojang.authlib.GameProfile |
loginGameProfile |
NetworkManager |
networkManager |
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 p_i45298_1_,
NetworkManager p_i45298_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(java.lang.String reason) |
java.lang.String |
getConnectionInfo() |
protected com.mojang.authlib.GameProfile |
getOfflineProfile(com.mojang.authlib.GameProfile original) |
void |
onDisconnect(IChatComponent reason)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
processEncryptionResponse(C01PacketEncryptionResponse packetIn) |
void |
processLoginStart(C00PacketLoginStart packetIn) |
void |
tryAcceptPlayer() |
void |
update()
Like the old updateEntity(), except more generic.
|
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 java.lang.String serverId
private javax.crypto.SecretKey secretKey
private EntityPlayerMP field_181025_l
public NetHandlerLoginServer(MinecraftServer p_i45298_1_, NetworkManager p_i45298_2_)
public void update()
public void closeConnection(java.lang.String reason)
public void tryAcceptPlayer()
public void onDisconnect(IChatComponent reason)
onDisconnect in interface INetHandlerpublic java.lang.String getConnectionInfo()
public void processLoginStart(C00PacketLoginStart packetIn)
processLoginStart in interface INetHandlerLoginServerpublic void processEncryptionResponse(C01PacketEncryptionResponse packetIn)
processEncryptionResponse in interface INetHandlerLoginServerprotected com.mojang.authlib.GameProfile getOfflineProfile(com.mojang.authlib.GameProfile original)