Search in sources :

Example 1 with LibraryManager

use of org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager in project SpongeCommon by SpongePowered.

the class ForgeBootstrap method initArguments.

@Override
public void initArguments(final Map<String, ?> arguments) {
    final Environment env = Launcher.INSTANCE.environment();
    ForgePluginPlatform.bootstrap(env);
    this.libraryManager = new LibraryManager(env.getProperty(ForgeProductionBootstrap.Keys.CHECK_LIBRARY_HASHES.get()).orElse(true), env.getProperty(ForgeProductionBootstrap.Keys.LIBRARIES_DIRECTORY.get()).orElseThrow(() -> new IllegalStateException("no libraries available")), ForgeBootstrap.class.getResource("libraries.json"));
}
Also used : Environment(cpw.mods.modlauncher.Environment) FMLEnvironment(net.minecraftforge.fml.loading.FMLEnvironment) LibraryManager(org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager)

Aggregations

Environment (cpw.mods.modlauncher.Environment)1 FMLEnvironment (net.minecraftforge.fml.loading.FMLEnvironment)1 LibraryManager (org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager)1