-
Notifications
You must be signed in to change notification settings - Fork 522
[Feature Request] Recipe Sync API #4667
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requeststatus: acceptedThis issue is a good idea and a PR should be madeThis issue is a good idea and a PR should be made
Description
For mods that use recipes on the client, it would be useful to have a way for mods to sync recipes from the server to the client.
Considerations
- Mods should exist on the server in order to make the request there.
- This will avoid clients requesting massive amounts of data from a server in an uncontrolled way.
- There should be a period of time or event where mods can request specific recipe types to by synced.
- Not all recipes need to by synced and multiple mods may require the same recipe types, so this will prevent sending too much data or redundant data.
- Recipes sent to the client should include the ID (so ideally the whole
RecipeHoldershould by synced and stored in aRecipeMap).- This will give mods better ability to manage recipes on the client similarly to how they are managed on the server, allowing for persisting references to recipes across game play sessions.
@shartte completed an implementation in neoforged/NeoForge#2021 with some additional motivations and design rationale.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requeststatus: acceptedThis issue is a good idea and a PR should be madeThis issue is a good idea and a PR should be made