Skip to main content

Crate steel_utils

Crate steel_utils 

Source
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’s VerticalAnchor, HeightProvider, and FloatProvider.

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§

FrontVec
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 to extend_from_slice()

Constants§

MC_VERSION
The Minecraft version this server supports.