Skip to main content

Module item

Module item 

Source
Expand description

The bus’s domains: each one’s actions as functions (world::get_block(dim, pos), entity::position(uuid), player::give_item(name, item, count)) beside its events. Items’ services: what a mod says about its items’ stacks.

Structs§

Block
The block item places, if any.
EntityStack
An item entity’s stack.
Picture
Whether a stack gets a picture under its tooltip (Hex Casting’s scrolls show their pattern), and its size in GUI pixels — keyed by the item, answered by its mod; drawn on client::render::Tooltip.
SetEntityStack
Sets an item entity’s stack.
Shown
What a stack shows instead of its item’s own name and description.
SpawnItem
Drops a stack into the world; the item entity’s uuid.
Text
A stack’s own name and tooltip, from its custom data (a written blueprint shows its design) — keyed by the item, answered by its mod; None: the item’s own.

Functions§

block
The block item places, if any.
entity_stack
An item entity’s stack.
set_entity_stack
Sets an item entity’s stack.
spawn_item
Drops a stack into the world; the item entity’s uuid.