Skip to main content

Module world

Module world 

Source
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Β§

ClipHitResult
Result of a vanilla-style world clip.
PlayerAreaMap
Spatial index for player proximity queries.
PlayerMap
Thread-safe player storage with dual indexing.
SignalQueryContext
State carried through one synchronous redstone signal query.
World
A struct that represents a world.
WorldConfig
Configuration for creating a new world.
WorldGameTickTimings
Timing information for a world game tick.

EnumsΒ§

ClipBlockShape
Block shape channel used by vanilla-style world clipping.
ClipFluid
Fluid shape filter used by vanilla-style world clipping.
ConditionalBlockSetResult
Result of replacing a block only when its current state still matches a prior read.
RaytraceAction
Controls how a block position is treated during a raytrace traversal.
WorldBorderError
Invalid world border state or update.

TraitsΒ§

LevelAccessor
Mutable level access needed by vanilla LevelAccessor block hooks.
LevelReader
Read-only level access needed by block behavior and worldgen predicates.
ScheduledTickAccess
Level access needed by vanilla block updateShape logic.
SignalGetter
Read-only redstone signal queries matching vanilla SignalGetter.

FunctionsΒ§

initialize_border_packet πŸ”’