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, wait
decode, handleReceived, id
public 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()
Packet
direction
in interface Packet
PacketDirection.IN
or
PacketDirection.OUT
depending on directionCopyright © 2016. All rights reserved.