barneygale / quarry

Python library that implements the Minecraft network protocol and data types
Other
532 stars 74 forks source link

Packets in int #26

Closed Mepth closed 7 years ago

Mepth commented 7 years ago

How to get packets in int?

williammck commented 7 years ago

If you're trying to pack a VarInt into a Buffer, use the pack_varint method.
If you're trying to unpack a VarInt from a Buffer, use the unpack_varint method.

For more information, see http://quarry.readthedocs.io/en/latest/sending_and_receiving_packets.html.

Otherwise, I'm a bit confused as to what exactly you're asking about. Please provide clarification on what you're trying to achieve.