GamePacket.packet

Serialised packet ready to be encrypted or encapsulated and sent to the client when this packet is serverbound or packet already unencrypted and uncompressed ready to be handled by the node otherwise.

<h4>Format</h4>

<h5>Minecraft (serverbound)</h5> The packet is prefixed with a varuint-encoded 0 if the packet is not compressed or with the uncompressed packet's length encoded as a varuint if the packet is compressed.

<h5>Minecraft (clientbound)</h5> The packet is already unencrypted and uncompressed and ready to be handled as a serverbound packet.

<h5>Minecraft: Pocket Edition (serverbound)</h5> The packet is simply encoded (may be compressed in a Batch packet) and ready to be encapsulated using RakNet.

<h5>Minecraft: Pocket Edition (clientbound)</h5> The packet is already unencrypted and uncompressed if it was a Batch packet and ready to be handled as a serverbound packet.

class GamePacket
ubyte[] packet;

Meta