Registration API for data loaders
bluebear94 opened this issue ยท 2 comments
I'm working on a mod that adds the concept of tool materials, and I'd like to be able to load their properties from data packs. Right now, Minecraft has a hardcoded list of DataLoader
s, which makes doing so hard. It would be easier to do if Fabric provided a way to register our own DataLoader
s (or more precisely, functions to generate them per Server
) and sync its data to the client if requested.
Fabric API has a class called ResourceManagerHelper
for registering ResourceReloadListener
s for resource pack / data pack loading.