I'm making a (private) Minecraft launcher and would like to use fmlbranding.
The problem I have is: I need to explicitly add my launcher JAR to classpath of ClassLoader I create to load Minecraft classes, like this:
mcClassUrls.add(getClass().getProtectionDomain().getCodeSource().getLocation());
// ...
URLClassLoader mcClassLoader = new URLClassLoader(mcClassUrls.toArray(new URL[0]), getClass().getClassLoader());
If I don't do that, FML doesn't see fmlbranding.properties, regardless of parent ClassLoader.
What's the best way to go without adding unnecessary classes to the classpath?