#A reliable way to map a Class to a ModContainer
7 messages · Page 1 of 1 (latest)
you can manually load the mod jar yourself and check if the classes full name is contained in it
but probably not without doing that as they're all just added to the classpath
Well, that's kind of the issue, I couldn't find a reliable way to get all mod paths.
ModContainer#getRootPaths is close, but it only returns the resources folder in dev environment if a sourceSet isn't added manually in build.gradle, which I can't really guarantee.