Expand description
This module contains the World struct, which represents a world.
Re-exportsΒ§
pub use crate::config::WorldStorageConfig;pub use tick_scheduler::ScheduledTick;
ModulesΒ§
- block_
entity_ πticker - World-owned block-entity ticker ordering.
- block_
event π - Server-side block-event queue and client publication.
- block_
region π - block_
updates π - border π
- World border state and collision helpers.
- broadcasts π
- clock π
- entity_
management π - environment π
- events π
- game_
event - Vanilla game-event contexts, listeners, and dispatch storage.
- level_
effects π - level_
reader π - Read-only world view shared by live worlds and world-generation regions.
- player_
index π - player_
spawn_ πfinder - portals π
- properties π
- raycast π
- redstone π
- Per-world runtime state used by vanilla redstone components.
- signal_
getter π - Vanilla redstone signal queries shared by live and test level readers.
- spawn π
- tick_
scheduler - Scheduled tick storage and selection for deterministic block and fluid updates.
- weather π
- world_
entities π - This module contains the implementation of the worldβs entity-related methods.
StructsΒ§
- Clip
HitResult - Result of a vanilla-style world clip.
- Player
Area Map - Spatial index for player proximity queries.
- Player
Map - Thread-safe player storage with dual indexing.
- Signal
Query Context - State carried through one synchronous redstone signal query.
- World
- A struct that represents a world.
- World
Config - Configuration for creating a new world.
- World
Game Tick Timings - Timing information for a world game tick.
EnumsΒ§
- Clip
Block Shape - Block shape channel used by vanilla-style world clipping.
- Clip
Fluid - Fluid shape filter used by vanilla-style world clipping.
- Conditional
Block SetResult - Result of replacing a block only when its current state still matches a prior read.
- Raytrace
Action - Controls how a block position is treated during a raytrace traversal.
- World
Border Error - Invalid world border state or update.
TraitsΒ§
- Level
Accessor - Mutable level access needed by vanilla
LevelAccessorblock hooks. - Level
Reader - Read-only level access needed by block behavior and worldgen predicates.
- Scheduled
Tick Access - Level access needed by vanilla block
updateShapelogic. - Signal
Getter - Read-only redstone signal queries matching vanilla
SignalGetter.