Resolve one crafting level from RecipeManager.
Build / build (push) Failing after 27s

VanillaRecipeProvider scans every RecipeType by output, prefers crafting-table recipes, and falls back to gather. Stub stays in unit tests. Overlay still HUD; persistence still RAM.
This commit is contained in:
Stephen Fasciani
2026-09-08 05:32:10 -04:00
parent 149e3619bf
commit f807a9e603
12 changed files with 134 additions and 20 deletions
+4 -4
View File
@@ -39,7 +39,7 @@ Dependency chains as an auto-expanded tree remain an expanded view, not this por
Lookup is **by output item**, across **every** `RecipeType` in `RecipeManager`, not only `minecraft:crafting`. Custom types (`computercraft:…`, `ae2:inscriber`, …) still live in `RecipeManager` if the mod registered them. Prefer a crafting-table recipe when several types match; otherwise pick one (ADR-014).
Acceptance when `VanillaRecipeProvider` ships:
Acceptance:
- A **CC:Tweaked turtle** resolves to its registered ingredients (computer, chest, ingots — one level, not the computer’s own recipe).
- An **AE2** item that has a `RecipeManager` entry (crafting *or* inscriber) resolves to those ingredients. Processors are inscriber recipes, still in `RecipeManager`, not in EMI.
@@ -48,11 +48,11 @@ Catalysts (AE2 press not consumed) are not modelled yet. The adapter may list th
---
## First implementation: stub
## Shipped implementation
`StubRecipeProvider` in `infrastructure.recipe` — three shaped recipes plus gather. Shipped.
`VanillaRecipeProvider` over `RecipeManager` (all types, by output). Crafting-table recipes preferred when several match; else first highest score. Empty `getIngredients()` → gather.
Next: `VanillaRecipeProvider` over `RecipeManager` (vanilla and modded recipes registered with Minecraft). See ADR-016.
`StubRecipeProvider` remains for unit tests.
EMI / JEI / REI are not implementations and not Gradle dependencies.