Search in sources :

Example 1 with ModBlocks

use of net.silentchaos512.gems.init.ModBlocks in project SilentGems by SilentChaos512.

the class SilentGems method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    localizationHelper = new LocalizationHelper(MODID).setReplaceAmpersand(true);
    SilentLib.instance.registerLocalizationHelperForMod(MODID, localizationHelper);
    CommonItemStats.init();
    ToolHelper.init();
    GemsConfig.INSTANCE.init(event.getSuggestedConfigurationFile());
    registry.addRegistrationHandler(new ModEnchantments(), Enchantment.class);
    registry.addRegistrationHandler(new ModBlocks(), Block.class);
    registry.addRegistrationHandler(new ModItems(), Item.class);
    registry.addRegistrationHandler(new ModPotions(), Potion.class);
    registry.addRegistrationHandler(new ModRecipes(), IRecipe.class);
    ModParts.init();
    SoulSkill.init();
    GemsConfig.INSTANCE.loadModuleConfigs();
    // TODO: Achievements
    // World generation
    GameRegistry.registerWorldGenerator(new GemsWorldGenerator(), 0);
    GameRegistry.registerWorldGenerator(new GemsGeodeWorldGenerator(), -10);
    // Headcrumbs
    FMLInterModComms.sendMessage("headcrumbs", "add-username", Names.SILENT_CHAOS_512);
    // Load TCon compatibility stuff?
    if (Loader.isModLoaded("tconstruct")) {
        TConstructGemsCompat.preInit();
    }
    VeinMinerCompat.init();
    proxy.preInit(registry);
}
Also used : GemsGeodeWorldGenerator(net.silentchaos512.gems.world.GemsGeodeWorldGenerator) ModItems(net.silentchaos512.gems.init.ModItems) ModBlocks(net.silentchaos512.gems.init.ModBlocks) ModRecipes(net.silentchaos512.gems.init.ModRecipes) ModPotions(net.silentchaos512.gems.init.ModPotions) GemsWorldGenerator(net.silentchaos512.gems.world.GemsWorldGenerator) ModEnchantments(net.silentchaos512.gems.init.ModEnchantments) LocalizationHelper(net.silentchaos512.lib.util.LocalizationHelper) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1 ModBlocks (net.silentchaos512.gems.init.ModBlocks)1 ModEnchantments (net.silentchaos512.gems.init.ModEnchantments)1 ModItems (net.silentchaos512.gems.init.ModItems)1 ModPotions (net.silentchaos512.gems.init.ModPotions)1 ModRecipes (net.silentchaos512.gems.init.ModRecipes)1 GemsGeodeWorldGenerator (net.silentchaos512.gems.world.GemsGeodeWorldGenerator)1 GemsWorldGenerator (net.silentchaos512.gems.world.GemsWorldGenerator)1 LocalizationHelper (net.silentchaos512.lib.util.LocalizationHelper)1