Jump to content

[1.7.10] Getting all current mod domains


Daveyx0

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.