Skip to main content

Module slots

Module slots 

Source
Expand description

All the different types of Slots

Re-exportsยง

pub use slot::*;

Modulesยง

anvil_slots ๐Ÿ”’
armor_slot ๐Ÿ”’
crafting_slots ๐Ÿ”’
normal_slot ๐Ÿ”’
restricted_slot ๐Ÿ”’
result_handler ๐Ÿ”’
result_slot ๐Ÿ”’
slot
Slot abstraction for inventory access.

Structsยง

AnvilResultHandler
Result slot handler for an anvil.
ArmorSlot
A NormalSlot that only accepts items equippable in its equipment slot, caps at one item, and respects the prevent-armor-change enchantment effect.
CraftingHandler
A Recipe Handler for Crafting Recipes
NormalSlot
A normal slot that references a container and index.
RestrictedRules
The predicates behind a RestrictedSlot, shared by every slot of a section so a slot costs one pointer rather than one per predicate.
RestrictedSlot
A NormalSlot with custom place and pickup rules.
ResultSlot
A fake Slot that contains the resulting item of f.e. a craft

Traitsยง

ResultHandler
A trait for recipe handlers that update slots in containers according to recipes