public abstract class Client extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Client.CloseReason |
Modifier | Constructor and Description |
---|---|
protected |
Client() |
Modifier and Type | Method and Description |
---|---|
void |
close(Client.CloseReason closeReason) |
InetSocketAddress |
getAddress() |
Player |
getAssignedPlayer() |
long |
getLastAlive() |
PingStats |
getPingStats() |
abstract SessionHandler |
getSessionHandler() |
abstract Protocol |
getSourceProtocol() |
abstract void |
handlePacket(ByteBuffer buffer) |
void |
refreshActive() |
void |
tick() |
public abstract Protocol getSourceProtocol()
public abstract SessionHandler getSessionHandler()
public abstract void handlePacket(ByteBuffer buffer)
public void close(Client.CloseReason closeReason)
public void tick()
public InetSocketAddress getAddress()
public void refreshActive()
public Player getAssignedPlayer()
public PingStats getPingStats()
public long getLastAlive()
Copyright © 2016. All rights reserved.