Botting API for Minecraft using the client-server protocol
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).