Expand description
§Steel Utils
This crate contains a collection of utilities used by the Steel Minecraft server.
Re-exports§
pub use direction::Direction;pub use geometry::BlockLocalAabb;pub use geometry::WorldAabb;pub use rotation::Rotation;pub use types::BlockPos;pub use types::BlockStateId;pub use types::BoundingBox;pub use types::ChunkPos;pub use types::Identifier;pub use types::PackedBlockPos;pub use types::PackedChunkLocalXZ;pub use types::PackedChunkPos;pub use types::PackedSectionBlockPos;pub use types::PackedSectionPos;pub use types::SectionPos;pub use uuid_ext::UuidExt;
Modules§
- axis
- axis
- climate
- Climate system for biome selection. Climate system for biome selection in world generation.
- codec
- This module contains various codecs for reading and writing data.
- direction
- Direction enum for the six cardinal directions. Direction enum representing the six cardinal directions in Minecraft.
- entity_
events - front_
vec 🔒 - geometry
- Shared geometry primitives. Geometry primitives shared by registry data, physics, and world queries.
- hash
- CRC32C hashing for component validation. CRC32C hashing for component validation.
- locks
- A module for custom locks. Lock wrappers for debug checks and deadlock prevention.
- logger
- Utilities for Steel logging.
- random
- This module contains utilities for random number generation.
- registry
- helpful tools for registry
- rotation
- Vanilla’s
Rotation— horizontal rotations around the Y axis. - serial
- This module contains traits for serializing and deserializing data.
- text
- This module contains everything related to text components.
- translations
- translations_
registry - types
- A module for common types.
- uuid_
ext - UUID extension trait for Minecraft NBT serialization. UUID extension trait for Minecraft-compatible NBT serialization.
- value_
providers - Vanilla-compatible value provider types (
VerticalAnchor,HeightProvider,FloatProvider). Value providers matching vanilla’sVerticalAnchor,HeightProvider, andFloatProvider.
Macros§
- chat
- A log macro for chat messages, provide first the player name, and then the format.
- command
- A log macro for commands, provide first the player name, and then the format.
- console
- A log macro for console input.
Structs§
- Front
Vec - Its like a vec but with reserveable front space.
Its meant for our packet serialization,
you can just put the len of the packet in front without reallocating
keep in mind that calling multiple
set_in_front()sets the data in reverse order compared toextend_from_slice()
Constants§
- MC_
VERSION - The Minecraft version this server supports.