Skip to main content

Crate basalt_types

Crate basalt_types 

Source

Re-exports§

pub use error::Error;
pub use error::Result;
pub use nbt::NbtCompound;
pub use nbt::NbtList;
pub use nbt::NbtTag;
pub use traits::Decode;
pub use traits::Encode;
pub use traits::EncodedSize;

Modules§

error
nbt
In-house NBT (Named Binary Tag) implementation for the Minecraft protocol.
traits

Structs§

Angle
A rotation angle encoded as a single unsigned byte.
BitSet
A variable-length bit array encoded as a VarInt-prefixed array of i64 values.
BlockPosition
A block position using full 32-bit coordinates.
ChunkPosition
A chunk position in the world, identified by chunk-level x and z coordinates.
Identifier
A namespaced identifier in the format namespace:path.
OpaqueBytes
A byte buffer for protocol data whose internal structure is not parsed by the codec.
Position
A packed block position encoded as a single 64-bit integer.
Slot
A Minecraft item stack, used in inventories, entity equipment, and trade offers.
TextComponent
A rich text component used for chat messages, disconnect reasons, action bars, titles, and all UI text in the Minecraft protocol.
TextStyle
Visual styling for a text component.
Uuid
A 128-bit universally unique identifier used throughout the Minecraft protocol.
VarInt
A variable-length encoded 32-bit signed integer, occupying 1 to 5 bytes.
VarLong
A variable-length encoded 64-bit signed integer, occupying 1 to 10 bytes.
Vec2f
A 2D vector of f32 values.
Vec3f
A 3D vector of f32 values.
Vec3f64
A 3D vector of f64 values.
Vec3i16
A 3D vector of i16 values.

Enums§

ClickEvent
An action triggered when the player clicks a text component.
HoverEvent
Content displayed when the player hovers over a text component.
NamedColor
The 16 built-in Minecraft chat colors plus reset.
TextColor
Text color, either a named Minecraft color or an arbitrary hex RGB value.
TextContent
The content payload of a text component.