Fabric API

Fabric API

106M Downloads

Registration API for data loaders

bluebear94 opened this issue ยท 2 comments

commented

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 DataLoaders, which makes doing so hard. It would be easier to do if Fabric provided a way to register our own DataLoaders (or more precisely, functions to generate them per Server) and sync its data to the client if requested.

commented

Fabric API has a class called ResourceManagerHelper for registering ResourceReloadListeners for resource pack / data pack loading.

commented

Thanks, that was what I was looking for.