public class PacketData extends Object
Constructor and Description |
---|
PacketData(ByteBuf data)
Wraps the packet raw information
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
data()
Gets the appropriate packet data
|
int |
getLength()
The amount of bytes that can be read from the serialized packet
|
int |
id()
Gets the Id of the packet.
|
public PacketData(ByteBuf data)
data
- the serialized form of the packetpublic int id()
public ByteBuf data()
public int getLength()
Copyright © 2016. All rights reserved.