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 color::ArgbColor;
pub use color::RgbColor;
pub use direction::Direction;
pub use downcast::Downcast;
pub use downcast::DowncastType;
pub use downcast::DowncastTypeKey;
pub use downcast::ErasedType;
pub use geometry::BlockLocalAabb;
pub use geometry::BoundingBox;
pub use geometry::WorldAabb;
pub use rotation::Rotation;
pub use types::BlockPos;
pub use types::BlockStateId;
pub use types::ChunkPos;
pub use types::GlobalPos;
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
block_util
Vanilla BlockUtil helpers. Vanilla BlockUtil helpers shared by gameplay systems.
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.
color
Packed RGB and ARGB colors. Packed color values used by Vanilla codecs and network payloads.
direction
Direction enum for the six cardinal directions. Direction enum representing the six cardinal directions in Minecraft.
downcast
Deterministic concrete-type downcasting for erased Steel objects. Deterministic concrete-type downcasting for erased Steel objects.
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.
java
Java standard-library compatibility helpers. Java standard-library behavior used by vanilla parsing.
locks
A module for custom locks. Lock wrappers for debug checks and deadlock prevention.
logger
Utilities for Steel logging.
nbt
Vanilla-compatible NBT helpers. Vanilla-compatible NBT helpers.
random
This module contains utilities for random number generation.
registry
helpful tools for registry
rotation
Vanilla’s Rotation — horizontal rotations around the Y axis.
saved_data
Data saving helpers Per-world saved data storage.
serial
This module contains traits for serializing and deserializing data.
text
This module contains everything related to text components.
threading
Thread-count selection helpers.
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). Vanilla-compatible value providers used by world generation and features.
version

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.