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 |
disconnect(ITextComponent 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 disconnect(ITextComponent reason)
public void tryAcceptPlayer()
public void onDisconnect(ITextComponent reason)
onDisconnect in interface INetHandlerpublic java.lang.String getConnectionInfo()
public void processLoginStart(CPacketLoginStart packetIn)
processLoginStart in interface INetHandlerLoginServerpublic void processEncryptionResponse(CPacketEncryptionResponse packetIn)
processEncryptionResponse in interface INetHandlerLoginServerprotected GameProfile getOfflineProfile(GameProfile original)