MinecraftClassLoader loader;
loader = MinecraftLauncher.getClassLoader(build.getLibraries());
int loaded = 0;
while (!waiting.get()) {
int pass = loader.preloadClasses(PRELOAD_CLASSES);
loaded += pass;
// Less than the preload amount, so we are finished
if (pass != PRELOAD_CLASSES) {
break;
}