logo
Expand description

Provides low-level access to the Minecraft protocol.

You should avoid this module if possible.

Modules

Reading and writing packets.

Packet definitions and related types.

Structs

An array with a minimum and maximum character length known at compile time.

An integer with a minimum and maximum value known at compile time. T is the underlying integer type.

A string with a minimum and maximum character length known at compile time.

Represents an angle in steps of 1/256 of a full turn.

Wrapper type acting as a bridge between Serde and Encode/Decode through the NBT format.

When decoding, reads the rest of the data in a packet and stuffs it into a Vec<u8>. When encoding, the data is inserted into the packet with no length prefix.

An i32 encoded with variable length.

An i64 encoded with variable length.

Constants

The maximum number of bytes in a single packet.

Traits

Types that can be read from the Minecraft protocol.

Types that can be written to the Minecraft protocol.