Search in sources :

Example 1 with StoneGenerator

use of com.oitsjustjose.geolosys.world.StoneGenerator in project Geolosys by oitsjustjose.

the class Geolosys method postInit.

@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    if (Config.getInstance().enableSmelting) {
        if (configOres.hematiteChance > 0 || configOres.limoniteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 0), "ingotIron");
        }
        if (configOres.goldChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 1), "ingotGold");
        }
        if (configOres.malachiteChance > 0 || configOres.azuriteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 2), "ingotCopper");
        }
        if (configOres.cassiteriteChance > 0 || configOres.tealliteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 3), "ingotTin");
        }
        if (configOres.galenaChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 4), "ingotSilver");
            smeltSafely(new ItemStack(CLUSTER, 1, 5), "ingotLead");
        }
        if (configOres.bauxiteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 6), "ingotAluminum");
        }
        if (configOres.limoniteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 7), "ingotNickel");
        }
        if (configOres.platinumChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 8), "ingotPlatinum");
        }
        if (configOres.sphaleriteChance > 0) {
            smeltSafely(new ItemStack(CLUSTER, 1, 10), "ingotZinc");
        }
        if (Config.getInstance().enableYellorium) {
            smeltSafely(new ItemStack(CLUSTER, 1, 11), "ingotYellorium");
        }
        if (Config.getInstance().enableOsmium) {
            smeltSafely(new ItemStack(CLUSTER, 1, 12), "ingotOsmium");
        }
    }
    configParser = new ConfigParser();
    registerUserOreGen();
    registerUserStoneGen();
    GameRegistry.registerWorldGenerator(new OreGenerator(), 0);
    GameRegistry.registerWorldGenerator(new StoneGenerator(), 100);
}
Also used : StoneGenerator(com.oitsjustjose.geolosys.world.StoneGenerator) ItemStack(net.minecraft.item.ItemStack) OreGenerator(com.oitsjustjose.geolosys.world.OreGenerator) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

OreGenerator (com.oitsjustjose.geolosys.world.OreGenerator)1 StoneGenerator (com.oitsjustjose.geolosys.world.StoneGenerator)1 ItemStack (net.minecraft.item.ItemStack)1 EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1