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
itemplaces, if any. - Entity
Stack - 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. - SetEntity
Stack - Sets an item entity’s stack.
- Shown
- What a stack shows instead of its item’s own name and description.
- Spawn
Item - 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
itemplaces, 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.