Expand description
Recipe matching and crafting grid management.
This module provides functions to match crafting grid contents against registered recipes and update the result slot accordingly.
Functionsยง
- find_
recipe - Finds a matching recipe for the given crafting container.
- get_
remaining_ items - Gets the remaining items (crafting remainders) for a recipe.
- slot_
changed_ crafting_ grid - Called when a slot changes in the crafting grid. Updates the result container with the matching recipe result.