Posted September 20, 201411 yr Hey there, I was wondering if it was in some way possible to get the domains or modIDs of all the mods currently installed through code. I want to use this for a class that gets information out of certain textures. I would love to add mod compatibility to this, but I'm having trouble getting into the assets folder and looking for the other mod's block textures. I was able to do it with the original Minecraft textures through it's domain. Sadly this resulted in only Minecraft's domain: SimpleReloadableResourceManager resourceManager; resourceManager = (SimpleReloadableResourceManager)Minecraft.getMinecraft().getResourceManager(); Set set = resourceManager.getResourceDomains(); Object[] domains = set.toArray(); Another way would be to get the path for the assets folder and getting the name of the folders inside. However I don't know what this will do after a build. Would that still work? Or could I do it with inputStreams somehow? I couldn't find someone with simular needs so therefore I am posting here. Thanks in advance for any answers!
September 20, 201411 yr Author Thanks for the quick reply diesieben07. Although this wasn't my problem, it did lead me to the solution. I actually put my check in the wrong location I feel so dumb. Thanks again!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.