How can i check other mod's JIJ dependencies in Fabric?

1 day ago 4
ARTICLE AD BOX

I have a mod that must check other mod's dependencies, like it will do something if it has a dependency like folk.sisby:kaleido-config

For example using FabricLoader.getInstance().getAllMods() then iterating through ModContainer, Doing this i can get the dependencies of the mod with mod.getMetadata().getDependencies() but this does not give me the JIJ dependencies like kaleido-config, only the mod dependencies.

So something like iterating through all of the mods META-INF to find kaleido-config's jar could work but i can't get it to work.

Read Entire Article