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Β§
- Anvil
Result Handler - Result slot handler for an anvil.
- Armor
Slot - A
NormalSlotthat only accepts items equippable in its equipment slot, caps at one item, and respects the prevent-armor-change enchantment effect. - Crafting
Handler - A Recipe Handler for Crafting Recipes
- Furnace
Fuel Slot - Accepts furnace fuel and empty buckets, with Vanillaβs bucket stack limit.
- Furnace
Result Slot - Rejects insertion and awards accumulated cooking XP when output is taken.
- Grindstone
Result Handler - Result slot handler for a grindstone.
- Normal
Slot - A normal slot that references a container and index.
- Restricted
Rules - The predicates behind a
RestrictedSlot, shared by every slot of a section so a slot costs one pointer rather than one per predicate. - Restricted
Slot - A
NormalSlotwith custom place and pickup rules. - Result
Slot - A fake Slot that contains the resulting item of f.e. a craft
TraitsΒ§
- Result
Handler - A trait for recipe handlers that update slots in containers according to recipes