Minecraftforge: Generate Tags code dynamically

Created on 21 May 2019  ·  3Comments  ·  Source: MinecraftForge/MinecraftForge

To avoid endless issues with keeping the code in sync with the tag jsons, we should generate one or both with a gradle task. It would work similarly to updateLicenses, run manually to synchronize the code with the jsons or vice versa.

1.14 Cleanup

Most helpful comment

Is this something that can easily be made generic and part of Forge gradle/another library so mods can also use the method?

All 3 comments

Is this something that can easily be made generic and part of Forge gradle/another library so mods can also use the method?

This problem still exists somewhat, since there are still two sources of information, one in Forge*TagsProvider classes and one in Tags.Block/Item etc.

Was this page helpful?
0 / 5 - 0 ratings