Search in sources :

Example 1 with ModLoadingContext

use of net.minecraftforge.fml.ModLoadingContext in project NetherEx by LogicTechCorp.

the class NetherExConfig method registerConfigs.

static void registerConfigs() {
    FMLPaths.getOrCreateGameRelativePath(FMLPaths.CONFIGDIR.get().resolve("netherex"), "netherex config");
    FMLPaths.getOrCreateGameRelativePath(FMLPaths.CONFIGDIR.get().resolve(Paths.get("netherex", "biome_packs")), "netherex biome packs");
    ModLoadingContext loadingContext = ModLoadingContext.get();
    loadingContext.registerConfig(ModConfig.Type.COMMON, BLOCK_SPEC, "netherex/block-config.toml");
    loadingContext.registerConfig(ModConfig.Type.COMMON, EFFECT_SPEC, "netherex/effect-config.toml");
    loadingContext.registerConfig(ModConfig.Type.COMMON, ENTITY_SPEC, "netherex/entity-config.toml");
    loadingContext.registerConfig(ModConfig.Type.COMMON, NETHER_SPEC, "netherex/nether-config.toml");
}
Also used : ModLoadingContext(net.minecraftforge.fml.ModLoadingContext)

Aggregations

ModLoadingContext (net.minecraftforge.fml.ModLoadingContext)1