public interface IPacket
Modifier and Type | Method and Description |
---|---|
PacketProtocolInformation |
getProtocol()
Gets the protocol information.
|
boolean |
isValid()
Gets if the packet is valid.
|
void |
loadPayload(byte[] packetData)
Loads the packet payload from save data.
|
byte[] |
savePayload()
Saves the packet payload to a byte array.
|
boolean isValid()
PacketProtocolInformation getProtocol()
byte[] savePayload() throws PacketException
PacketException
- An Exception has occurred.void loadPayload(byte[] packetData) throws PacketException
packetData
- The packet payload data.java.lang.NullPointerException
- The new store data is null.PacketException
- An Exception has occurred.