Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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!

  • 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 xD 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.