ADR-016: RecipeManager is the lookup source. Viewers are optional only if a recipe never registers with Minecraft.
This commit is contained in:
@@ -115,13 +115,11 @@ Infrastructure may be replaced.
|
||||
Examples:
|
||||
|
||||
- NeoForge
|
||||
- EMI
|
||||
- JEI
|
||||
- REI
|
||||
- `RecipeManager` (vanilla + mod-registered recipes)
|
||||
- Save data storage
|
||||
- Inventory scanning
|
||||
|
||||
Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet.
|
||||
Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet. EMI/JEI/REI are not dependencies.
|
||||
|
||||
Infrastructure is never the source of domain truth.
|
||||
|
||||
@@ -129,13 +127,11 @@ Infrastructure is never the source of domain truth.
|
||||
|
||||
## Recipe abstraction
|
||||
|
||||
The domain should never directly depend on a recipe mod.
|
||||
The domain should never import a recipe viewer.
|
||||
|
||||
Port: [[🔌 Recipe Provider]] — `resolve(ItemId, quantity) → list of MaterialRequirement`.
|
||||
|
||||
First implementation: `StubRecipeProvider`. Later: EMI, JEI, REI, vanilla.
|
||||
|
||||
The rest of the system should not care which provider is active.
|
||||
Shipped: `StubRecipeProvider`. Next: `VanillaRecipeProvider` on `RecipeManager`. EMI/JEI/REI are not required. See ADR-016.
|
||||
|
||||
Recipe viewing is out of scope. This port exists so the domain can resolve requirements, not so Satistaskory can become a recipe browser.
|
||||
|
||||
@@ -199,7 +195,7 @@ Progressive disclosure is a UI concern guided by the domain: the materials regio
|
||||
|
||||
## Success criteria
|
||||
|
||||
If EMI, JEI, REI, or another recipe mod disappears tomorrow, Satistaskory should require only an adapter replacement and not a domain rewrite.
|
||||
If the recipe source changes (stub → `RecipeManager`, or a later viewer-only edge case), Satistaskory should require only an adapter replacement and not a domain rewrite.
|
||||
|
||||
The domain model should survive infrastructure changes.
|
||||
|
||||
|
||||
@@ -258,6 +258,28 @@ A button next to the slot vanishes when the cursor leaves the item. A `Screen` r
|
||||
|
||||
---
|
||||
|
||||
### ADR-016 — Vanilla RecipeManager is the recipe source
|
||||
|
||||
**Date:** 2026-09-08
|
||||
|
||||
**Decision:** Satistaskory does **not** depend on EMI, JEI, or REI.
|
||||
|
||||
Recipe lookup for [[🔌 Recipe Provider]] is Minecraft’s `RecipeManager` (vanilla + every mod that registers recipes through that API). Next implementation after the stub: `VanillaRecipeProvider`.
|
||||
|
||||
EMI / JEI / REI are recipe **viewers**. They are not a lookup dependency. An adapter to a viewer is only justified if a real recipe exists *only* in that viewer and never in `RecipeManager`. That has not been observed.
|
||||
|
||||
**Reason:**
|
||||
|
||||
The domain question is ingredients, not “what does EMI draw.” Most modded crafting, smelting, and machine recipes on NeoForge 1.21 are `RecipeType` + JSON/serializer in `RecipeManager`. ADR-003 named EMI/JEI/REI first without a domain reason.
|
||||
|
||||
The port remains. The **order** was wrong.
|
||||
|
||||
**Status:** ✅ Accepted
|
||||
|
||||
**Supersedes:** ADR-003’s implementation list (EMI/JEI/REI first, vanilla later)
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
@@ -49,7 +49,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain
|
||||
|---------|-----|
|
||||
| `Project` | Organizational only; not in the slice |
|
||||
| Completion strategy | Ready ≠ complete; complete is not in the slice |
|
||||
| `EmiRecipeProvider` / JEI / REI | Adapters after the stub proves the port |
|
||||
| `VanillaRecipeProvider` | Next recipe impl; `RecipeManager` |
|
||||
| Persistence | In-memory goals. ADR-004 still holds; no save adapter yet |
|
||||
| Full-screen planner | Not discovered |
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Port used by [[🧾 Recipe Resolution]].
|
||||
|
||||
The domain asks: *what materials produce this many of this item?*
|
||||
Infrastructure answers. The domain never imports a recipe mod.
|
||||
Infrastructure answers. The domain never imports a recipe **viewer** (EMI/JEI/REI). Lookup is Minecraft’s `RecipeManager`.
|
||||
|
||||
---
|
||||
|
||||
@@ -37,13 +37,11 @@ Not a recipe tree. Not a recipe browser. Dependency chains are an expanded view,
|
||||
|
||||
## First implementation: stub
|
||||
|
||||
`StubRecipeProvider` in `infrastructure.recipe`.
|
||||
`StubRecipeProvider` in `infrastructure.recipe` — three shaped recipes plus gather. Shipped.
|
||||
|
||||
In-memory table of a few shaped recipes plus the identity fallback. Enough to drive Furnace / Crafting Bench / Chest in the overlay. Not vanilla-complete. Not EMI.
|
||||
Next: `VanillaRecipeProvider` over `RecipeManager` (vanilla and modded recipes registered with Minecraft). See ADR-016.
|
||||
|
||||
Later implementations (not this slice): `EmiRecipeProvider`, `JeiRecipeProvider`, `ReiRecipeProvider`, `VanillaRecipeProvider`.
|
||||
|
||||
If a recipe mod disappears, only the adapter changes. See ADR-003, ADR-014.
|
||||
EMI / JEI / REI are not implementations and not Gradle dependencies.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user