Skip to main content

Module context

Module context 

Source
Expand description

Event dispatch context, trait definitions, and response queue.

The Context trait provides sub-contexts for different domains: PlayerContext, ChatContext, WorldContext, EntityContext, and ContainerContext. Plugins access them via ctx.player(), ctx.chat(), etc.

The concrete ServerContext implementation lives in basalt-server.

Re-exports§

pub use response::Response;
pub use response::ResponseQueue;

Modules§

response
Response enum and queue for deferred operations.

Enums§

UnlockReason
Why a recipe was unlocked for a player.

Traits§

ChatContext
Chat and messaging.
ContainerContext
Container interaction: chests, crafting tables, custom windows.
Context
Execution context for commands and event handlers.
EntityContext
Entity management: spawn, despawn, broadcast.
PlayerContext
Player identity and state.
RecipeContext
Per-player recipe-book state.
WorldContext
Per-dispatch context for world-related operations.