Expand description
Recipe system for crafting and other recipe types.
This module provides the data structures and matching logic for Minecraft recipes. Currently supports crafting recipes (shaped and shapeless).
Modules§
- crafting 🔒
- Crafting recipe types (shaped and shapeless).
- ingredient 🔒
- Ingredient matching for recipes.
- registry 🔒
- Recipe registry for looking up recipes.
Structs§
- Crafting
Input - Represents the current state of a crafting grid.
- Positioned
Crafting Input - A crafting input with position information.
- Recipe
Registry - Registry for all recipes.
- Recipe
Result - The result of a crafting recipe.
- Shaped
Recipe - A shaped crafting recipe with a specific pattern.
- Shapeless
Recipe - A shapeless crafting recipe where ingredient order doesn’t matter.
Enums§
- Crafting
Category - Category for crafting recipes (used by recipe book).
- Crafting
Recipe - Unified crafting recipe enum (replaces trait-based approach).
- Ingredient
- Represents what items can satisfy a recipe slot.
Matches Java’s
Ingredientclass.