Crate minecrevy_io
source ·Expand description
A library for encoding/decoding Minecraft packets and data types in the style of serde
.
Example
use minecrevy_io::{McRead, McWrite};
#[derive(McRead, McWrite)]
pub struct Handshake {
#[args(varint = true)]
pub version: i32,
#[args(max_len = 255)]
pub address: String,
pub port: u16,
#[args(varint = true)]
pub next: i32,
}
Modules
- Configurable arguments for customizing how encode and decode operations work for data types.
- An untyped, raw Minecraft packet.
- Re-exports important traits, types, and functions.
- Utility functions for the
minecrevy_io
crate.
Traits
- A trait for reading a type from a stream of bytes.
- A trait for writing a type to a stream of bytes.