public abstract class InPacket extends Object implements Packet
| Constructor and Description |
|---|
InPacket() |
| Modifier and Type | Method and Description |
|---|---|
PacketDirection |
direction()
Returns the packet direction
|
void |
encode(ByteBuf buf)
Serialized the data held by this packet into a buffer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, handleReceived, idpublic InPacket()
public void encode(ByteBuf buf)
Packets coming into the server cannot be encoded, as that is not practical under any circumstances
public PacketDirection direction()
Packetdirection in interface PacketPacketDirection.IN or
PacketDirection.OUT depending on directionCopyright © 2016. All rights reserved.