Crate netherite

Source
Expand description

§Netherite docs.rs

Netherite is a crate implementing the essential building blocks of the Minecraft protocol.

Like a netherite ingot, it enables you to build your tools by yourself, offering traits and methods for implementing your very own data types and packets.

This is because the Minecraft protocol is always changing, and a fixed, up-to-date implementation is really hard to maintain.

Re-exports§

pub use codec::MinecraftCodec;
pub use encoding::de::DeError;
pub use encoding::de::Deserialize;
pub use encoding::ser::Serialize;
pub use bytes as _bytes_export;

Modules§

codec
tokio_util codec for serializing and deserializing Minecraft packets
encoding
traits and types for data encoding of Minecraft packets
packet
structs representing Minecraft packets
varint
Minecraft VarInt implementation

Macros§

assert_deserialization
Asserts that the input data $data: &[u8] deserializes into $to: Deserialize
assert_serialization
Asserts that the input type $data: Serialize serializes into $to: &[u8]

Derive Macros§

Deserialize
Serialize