way2muchnoise / JustEnoughResources

A rewrite of NotEnoughResources using JustEnoughItems
Other
127 stars 65 forks source link

Question / Suggestion: From where are the API methods supposed to be called? #453

Open noeppi-noeppi opened 9 months ago

noeppi-noeppi commented 9 months ago

I am wondering, from where one is supposed to call the methods in IJERAPI (on forge). I was thinking:

So my suggestion is to add a callback into the IJERPlugin that is called on every JEI startup when CommonProxy.initCompatibility() runs. The API could then instantly commit into the actual registries and addon mods can react to datapacks. Also JER could then easily pass the IJeiHelpers to its plugins, which could potentially be useful for some plugins.