Description
Adds easy to create Datapacks for HyTale Plugins
How to use:
- Create a class for your entries implementing DatapackEntry.
- Create a codec for your datapack entry.
- In you Plugin setup method create a new DatapackReader using the pack name and codec for your entries.
- Access your datapack entries by the DatapackManager class.
For more customised use of datapacks you can use save your datapack reader to a property for getDataObjects method and getDataValues method.
Additionally, If extending DatapackReader you can override saveToManager to sort the entries before saving or alternatively save the entries to a new property to fit your use case.
Backup DataGen is available by appending a DatapackProvider to the DatapackReader constructor. DatapackProvider#generatePack will be called if no pack entries could be read.
Saves packs to Saves/worldName/mods/modName/datapackName
See github for example classes and comments.


