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);
}
Aggregations