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 πŸ”’
furnace_slots πŸ”’
Furnace-specific input, fuel, and result slots.
grindstone_slots πŸ”’
Grindstone result slot.
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
FurnaceFuelSlot
Accepts furnace fuel and empty buckets, with Vanilla’s bucket stack limit.
FurnaceResultSlot
Rejects insertion and awards accumulated cooking XP when output is taken.
GrindstoneResultHandler
Result slot handler for a grindstone.
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