Skip to main content

Module recipe

Module recipe 

Source
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§

CraftingInput
Represents the current state of a crafting grid.
PositionedCraftingInput
A crafting input with position information.
RecipeRegistry
Registry for all recipes.
RecipeResult
The result of a crafting recipe.
ShapedRecipe
A shaped crafting recipe with a specific pattern.
ShapelessRecipe
A shapeless crafting recipe where ingredient order doesn’t matter.

Enums§

CraftingCategory
Category for crafting recipes (used by recipe book).
CraftingRecipe
Unified crafting recipe enum (replaces trait-based approach).
Ingredient
Represents what items can satisfy a recipe slot. Matches Java’s Ingredient class.