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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
- ✅ Play overlay shows [[🎯 Goal|goals]] (upper) and [[📉 Missing Material|missing materials]] (lower)
|
||||
- ✅ A goal can be named by pointing at an item (hover → add), not by opening a Satistaskory menu
|
||||
- ✅ The player still does the work (Philosophy Rule #4)
|
||||
- ✅ If EMI, JEI, or REI disappears, only an adapter changes
|
||||
- ✅ Recipe lookup is `RecipeManager`. EMI/JEI/REI are not required. If the adapter changes, the domain does not.
|
||||
- ✅ The domain model survives infrastructure changes
|
||||
- ✅ Future Me can navigate the vault after six months (Philosophy Rule #7)
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ First slice **code exists** and has been played: domain, stub `RecipeProvider` (
|
||||
The walk is real.
|
||||
|
||||
1. World-save persistence
|
||||
2. Vanilla `RecipeProvider` (one crafting level). Still not EMI.
|
||||
2. Vanilla `RecipeProvider` on `RecipeManager` (one crafting level). No EMI/JEI/REI.
|
||||
|
||||
Do not start EMI because the port exists.
|
||||
EMI is not a dependency. See ADR-016.
|
||||
|
||||
---
|
||||
|
||||
@@ -37,8 +37,7 @@ Do not start EMI because the port exists.
|
||||
|
||||
Not a queue. See [[🚧 Future Ideas]].
|
||||
|
||||
- EMI / JEI / REI recipe adapters
|
||||
- Vanilla recipe provider (beyond the stub table)
|
||||
- Viewer-only recipe adapter if `RecipeManager` is not enough
|
||||
- Persistence (world / server / cloud)
|
||||
- Projects packaged
|
||||
- Completion
|
||||
|
||||
@@ -316,6 +316,18 @@ Next: world save, then vanilla RecipeProvider. Not EMI. Not a Screen rewrite.
|
||||
|
||||
---
|
||||
|
||||
## 📜 2026-09-08 (no recipe-viewer dependency)
|
||||
|
||||
Greetings, Wayfinder.
|
||||
|
||||
EMI / JEI / REI were never in Gradle. They were named as RecipeProvider implementations without a domain reason.
|
||||
|
||||
ADR-016: lookup is `RecipeManager`. Modded recipes that register a `RecipeType` / serializer / JSON land there. Viewers only display them.
|
||||
|
||||
Next recipe impl: `VanillaRecipeProvider`. A viewer adapter only if a recipe exists solely in EMI and never in `RecipeManager`.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🌟 Project Vision]]
|
||||
|
||||
@@ -6,8 +6,8 @@ Not a build queue.
|
||||
|
||||
---
|
||||
|
||||
- EMI / JEI / REI `RecipeProvider` adapters
|
||||
- Vanilla `RecipeProvider` beyond the stub table
|
||||
- Vanilla `RecipeProvider` on `RecipeManager` (next after world save)
|
||||
- Viewer-only recipe adapter (EMI/JEI/REI) **if** a recipe never appears in `RecipeManager`
|
||||
- Persistence (world save / server / cloud)
|
||||
- Inventory-detection completion (alongside manual)
|
||||
- Ender chest / later storage in the inventory snapshot
|
||||
|
||||
Reference in New Issue
Block a user