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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user