public class NetHandlerLoginServer extends java.lang.Object implements INetHandlerLoginServer, ITickable
Modifier and Type | Field and Description |
---|---|
NetworkManager |
networkManager |
Constructor and Description |
---|
NetHandlerLoginServer(MinecraftServer serverIn,
NetworkManager networkManagerIn) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection(java.lang.String reason) |
java.lang.String |
getConnectionInfo() |
protected GameProfile |
getOfflineProfile(GameProfile original) |
void |
onDisconnect(ITextComponent reason)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
processEncryptionResponse(CPacketEncryptionResponse packetIn) |
void |
processLoginStart(CPacketLoginStart packetIn) |
void |
tryAcceptPlayer() |
void |
update()
Like the old updateEntity(), except more generic.
|
public final NetworkManager networkManager
public NetHandlerLoginServer(MinecraftServer serverIn, NetworkManager networkManagerIn)
public void update()
public void closeConnection(java.lang.String 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 GameProfile getOfflineProfile(GameProfile original)