Minecraftforge: [Suggestion] DataFixer walker for capabilities

Created on 25 Nov 2017  ·  3Comments  ·  Source: MinecraftForge/MinecraftForge

Currently we can just register a fixer/walker for an existing IFixType and then trudge around in the raw compound looking for the capabilities subtag. This is tedious (every mod has to do a lot of boilerplate) and flaky (since it would break if Forge ever changed where caps are stored)

It would be nicer if Forge added an IFixType representing capabilities, then added walkers for LEVEL, PLAYER, CHUNK, BLOCK_ENTITY, ENTITY and ITEM_INSTANCE to automatically navigate to the cap tag and walk it.

Stale

Most helpful comment

If this sounds like a good idea, I can get working on a PR

All 3 comments

If this sounds like a good idea, I can get working on a PR

This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. "I have checked the code and this issue is still relevant because ___." or "Here's a screenshot of this issue on the latest version"). Thank you for your contributions!

This issue has been automatically closed because it has not had activity in a long time. Please feel free to reopen it or create a new issue.

Was this page helpful?
0 / 5 - 0 ratings