Skip to main content

Module context

Module context 

Source
Expand description

Context types and results for block and item interactions.

Structs§

BlockHitResult
Result of a ray cast hitting a block.
BlockPlaceContext
Context for placing a block.
InventoryAccess
Access to the player’s inventory.
PlacementSource
Player and item data retained across one block placement operation.
UseItemContext
Context for using an item (general usage).
UseOnContext
Context for using an item on a block.

Enums§

InteractionResult
Result of an interaction (item use, block use, etc.)
PlacementItemSource 🔒
PlacementMode 🔒
PlacementOrientation
Placement direction behavior derived from either a player or a synthetic caller.

Functions§

directional_placement_directions 🔒