public abstract class PacketHandler extends Object
Constructor and Description |
---|
PacketHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
onReceive(AbstractPacket packet)
Method called when the server receive a packet
|
abstract void |
onSend(AbstractPacket packet)
Method called when the server send a packet
|
public abstract void onReceive(AbstractPacket packet)
packet
- the received packetpublic abstract void onSend(AbstractPacket packet)
packet
- the sent packet