SrsBusiness / mcprotocol

Botting API for Minecraft using the client-server protocol
GNU General Public License v2.0
0 stars 0 forks source link

mcprotocol

Botting API for Minecraft using the client-server protocol

Packet Format Guide

Structs can be serialized to bytes by defining a format string for the packet serializer. The following table describes the format guidelines.

fmt type
b 1 byte
h 2 bytes
w 4 bytes
l 8 bytes
q 16 bytes
s string
v varint32
* array

Note: the array format character is a prefix to other types (e.g. *b for a char array).