The ATG integration now respects whether or not a biome is enabled in our config file

This commit is contained in:
Adubbz 2013-10-22 17:58:26 +11:00
parent 98fe9683e0
commit 44d0c296c6
1 changed files with 136 additions and 135 deletions

View File

@ -1,5 +1,6 @@
package biomesoplenty.integration;
import static biomesoplenty.configuration.configfile.BOPConfigurationBiomeGen.*;
import biomesoplenty.api.Biomes;
import biomesoplenty.integration.atg.*;
import net.minecraft.world.biome.BiomeGenBase;
@ -7,8 +8,8 @@ import ttftcuts.atg.api.ATGBiomes;
import ttftcuts.atg.api.ATGBiomes.BiomeType;
import ttftcuts.atg.api.IGenMod;
public class ATGIntegration {
public class ATGIntegration
{
static double nb = 0.1; // Modifier used for biomes that have their own group
static double[] tiers = { 1.0, 0.5, 0.3, 0.2, 0.1, 0.04 };
@ -30,17 +31,17 @@ public class ATGIntegration {
// sub-biomes
// ########################
ATGBiomes.addSubBiome(Biomes.meadow.get(), Biomes.meadowForest.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.canyon.get(), Biomes.canyonRavine.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.shrubland.get(), Biomes.shrublandForest.get(), 0.5);
ATGBiomes.addSubBiome(Biomes.ominousWoods.get(), Biomes.ominousWoodsThick.get(), 0.5);
ATGBiomes.addSubBiome(Biomes.pasture.get(), Biomes.pastureMeadow.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.pasture.get(), Biomes.pastureThin.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.timber.get(), Biomes.timberThin.get(), 0.5);
ATGBiomes.addSubBiome(Biomes.alps.get(), Biomes.alpsForest.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.alps.get(), Biomes.alpsBase.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.seasonalForest.get(), Biomes.seasonalSpruceForest.get(), 1.0);
ATGBiomes.addSubBiome(Biomes.field.get(), Biomes.fieldForest.get(), 1.0);
if (meadowGen) ATGBiomes.addSubBiome(Biomes.meadow.get(), Biomes.meadowForest.get(), 1.0);
if (canyonGen) ATGBiomes.addSubBiome(Biomes.canyon.get(), Biomes.canyonRavine.get(), 1.0);
if (shrublandGen) ATGBiomes.addSubBiome(Biomes.shrubland.get(), Biomes.shrublandForest.get(), 0.5);
if (ominousWoodsGen) ATGBiomes.addSubBiome(Biomes.ominousWoods.get(), Biomes.ominousWoodsThick.get(), 0.5);
if (pastureGen) ATGBiomes.addSubBiome(Biomes.pasture.get(), Biomes.pastureMeadow.get(), 1.0);
if (pastureGen) ATGBiomes.addSubBiome(Biomes.pasture.get(), Biomes.pastureThin.get(), 1.0);
if (timberGen) ATGBiomes.addSubBiome(Biomes.timber.get(), Biomes.timberThin.get(), 0.5);
if (alpsGen) ATGBiomes.addSubBiome(Biomes.alps.get(), Biomes.alpsForest.get(), 1.0);
if (alpsGen) ATGBiomes.addSubBiome(Biomes.alps.get(), Biomes.alpsBase.get(), 1.0);
if (seasonalForestGen) ATGBiomes.addSubBiome(Biomes.seasonalForest.get(), Biomes.seasonalSpruceForest.get(), 1.0);
if (fieldGen) ATGBiomes.addSubBiome(Biomes.field.get(), Biomes.fieldForest.get(), 1.0);
}
private static void addLandBiomesGroup()
@ -69,39 +70,39 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Forest", BiomeGenBase.forest, Biomes.forestNew.get(), tiers[0]);
if (forestGen) ATGBiomes.replaceBiome(land, "Forest", BiomeGenBase.forest, Biomes.forestNew.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Forest", Biomes.birchForest.get(), tiers[1]);
ATGBiomes.addBiome(land, "Forest", Biomes.woodland.get(), tiers[1] * nb); // out of base group
ATGBiomes.addBiome(land, "Forest", Biomes.spruceWoods.get(), tiers[1] * nb); // out of base group
if (birchForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.birchForest.get(), tiers[1]);
if (woodlandGen) ATGBiomes.addBiome(land, "Forest", Biomes.woodland.get(), tiers[1] * nb); // out of base group
if (spruceWoodsGen) ATGBiomes.addBiome(land, "Forest", Biomes.spruceWoods.get(), tiers[1] * nb); // out of base group
// tier 3
ATGBiomes.addBiome(land, "Forest", Biomes.coniferousForest.get(), tiers[2] * nb); // out of base group
ATGBiomes.addBiome(land, "Forest", Biomes.temperateRainforest.get(), tiers[2] );
ATGBiomes.addBiome(land, "Forest", Biomes.redwoodForest.get(), tiers[2]);
ATGBiomes.addBiome(land, "Forest", Biomes.mountain.get(), tiers[2]);
if (coniferousForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.coniferousForest.get(), tiers[2] * nb); // out of base group
if (temperateRainforestGen) ATGBiomes.addBiome(land, "Forest", Biomes.temperateRainforest.get(), tiers[2] );
if (redwoodForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.redwoodForest.get(), tiers[2]);
if (mountainGen) ATGBiomes.addBiome(land, "Forest", Biomes.mountain.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(land, "Forest", Biomes.mapleWoods.get(), tiers[3]);
ATGBiomes.addBiome(land, "Forest", Biomes.seasonalForest.get(), tiers[3]);
ATGBiomes.addBiome(land, "Forest", Biomes.borealForest.get(), tiers[3] * nb); // out of base group
ATGBiomes.addBiome(land, "Forest", Biomes.deciduousForest.get(), tiers[3]);
ATGBiomes.addBiome(land, "Forest", Biomes.highland.get(), tiers[3] * nb); // out of base group
if (mapleWoodsGen) ATGBiomes.addBiome(land, "Forest", Biomes.mapleWoods.get(), tiers[3]);
if (seasonalForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.seasonalForest.get(), tiers[3]);
if (borealForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.borealForest.get(), tiers[3] * nb); // out of base group
if (deciduousForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.deciduousForest.get(), tiers[3]);
if (highlandGen) ATGBiomes.addBiome(land, "Forest", Biomes.highland.get(), tiers[3] * nb); // out of base group
// tier 5
ATGBiomes.addBiome(land, "Forest", Biomes.deadForest.get(), tiers[4]);
ATGBiomes.addBiome(land, "Forest", Biomes.grove.get(), tiers[4]);
ATGBiomes.addBiome(land, "Forest", Biomes.timber.get(), tiers[4]);
ATGBiomes.addBiome(land, "Forest", Biomes.thicket.get(), tiers[4]);
ATGBiomes.addBiome(land, "Forest", Biomes.shield.get(), tiers[4]);
if (deadForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.deadForest.get(), tiers[4]);
if (groveGen) ATGBiomes.addBiome(land, "Forest", Biomes.grove.get(), tiers[4]);
if (timberGen) ATGBiomes.addBiome(land, "Forest", Biomes.timber.get(), tiers[4]);
if (thicketGen) ATGBiomes.addBiome(land, "Forest", Biomes.thicket.get(), tiers[4]);
if (shieldGen) ATGBiomes.addBiome(land, "Forest", Biomes.shield.get(), tiers[4]);
// tier 6
ATGBiomes.addBiome(land, "Forest", Biomes.fungiForest.get(), tiers[5]);
ATGBiomes.addBiome(land, "Forest", Biomes.cherryBlossomGrove.get(), tiers[5]);
ATGBiomes.addBiome(land, "Forest", Biomes.mysticGrove.get(), tiers[5]);
ATGBiomes.addBiome(land, "Forest", Biomes.hotSprings.get(), tiers[5]);
ATGBiomes.addBiome(land, "Forest", Biomes.originValley.get(), tiers[5] * 0.5); // better at lowland?
if (fungiForestGen) ATGBiomes.addBiome(land, "Forest", Biomes.fungiForest.get(), tiers[5]);
if (cherryBlossomGroveGen) ATGBiomes.addBiome(land, "Forest", Biomes.cherryBlossomGrove.get(), tiers[5]);
if (mysticGroveGen) ATGBiomes.addBiome(land, "Forest", Biomes.mysticGrove.get(), tiers[5]);
if (hotSpringsGen) ATGBiomes.addBiome(land, "Forest", Biomes.hotSprings.get(), tiers[5]);
if (originValleyGen) ATGBiomes.addBiome(land, "Forest", Biomes.originValley.get(), tiers[5] * 0.5); // better at lowland?
}
private static void addJungleBiomesGroup()
@ -111,23 +112,23 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Jungle", BiomeGenBase.jungle, Biomes.jungleNew.get(), tiers[0]);
if (jungleGen) ATGBiomes.replaceBiome(land, "Jungle", BiomeGenBase.jungle, Biomes.jungleNew.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Jungle", Biomes.tropicalRainforest.get(), tiers[1]);
ATGBiomes.addBiome(land, "Jungle", Biomes.rainforest.get(), tiers[1]);
if (tropicalRainforestGen) ATGBiomes.addBiome(land, "Jungle", Biomes.tropicalRainforest.get(), tiers[1]);
if (rainforestGen) ATGBiomes.addBiome(land, "Jungle", Biomes.rainforest.get(), tiers[1]);
// tier 3
ATGBiomes.addBiome(land, "Jungle", Biomes.tropics.get(), tiers[2]);
if (tropicsGen) ATGBiomes.addBiome(land, "Jungle", Biomes.tropics.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(land, "Jungle", Biomes.bambooForest.get(), tiers[3]);
ATGBiomes.addBiome(land, "Jungle", Biomes.jadeCliffs.get(), tiers[3]);
if (bambooForestGen) ATGBiomes.addBiome(land, "Jungle", Biomes.bambooForest.get(), tiers[3]);
if (jadeCliffsGen) ATGBiomes.addBiome(land, "Jungle", Biomes.jadeCliffs.get(), tiers[3]);
// tier 5
// tier 6
ATGBiomes.addBiome(land, "Jungle", Biomes.sacredSprings.get(), tiers[5]);
if (sacredSpringsGen) ATGBiomes.addBiome(land, "Jungle", Biomes.sacredSprings.get(), tiers[5]);
}
private static void addPlainsBiomesGroup()
@ -137,28 +138,28 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Plains", BiomeGenBase.plains, Biomes.plainsNew.get(), tiers[0]);
if (plainsGen) ATGBiomes.replaceBiome(land, "Plains", BiomeGenBase.plains, Biomes.plainsNew.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Plains", Biomes.shrubland.get(), tiers[1] * nb); // out of base group
ATGBiomes.addBiome(land, "Plains", Biomes.chaparral.get(), tiers[1]);
ATGBiomes.addBiome(land, "Plains", Biomes.prairie.get(), tiers[1]);
if (shrublandGen) ATGBiomes.addBiome(land, "Plains", Biomes.shrubland.get(), tiers[1] * nb); // out of base group
if (chaparralGen) ATGBiomes.addBiome(land, "Plains", Biomes.chaparral.get(), tiers[1]);
if (prairieGen) ATGBiomes.addBiome(land, "Plains", Biomes.prairie.get(), tiers[1]);
// tier 3
ATGBiomes.addBiome(land, "Plains", Biomes.field.get(), tiers[2]);
ATGBiomes.addBiome(land, "Plains", Biomes.grassland.get(), tiers[2]);
if (fieldGen) ATGBiomes.addBiome(land, "Plains", Biomes.field.get(), tiers[2]);
if (grasslandGen) ATGBiomes.addBiome(land, "Plains", Biomes.grassland.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(land, "Plains", Biomes.pasture.get(), tiers[3]);
ATGBiomes.addBiome(land, "Plains", Biomes.meadow.get(), tiers[3]);
if (pastureGen) ATGBiomes.addBiome(land, "Plains", Biomes.pasture.get(), tiers[3]);
if (meadowGen) ATGBiomes.addBiome(land, "Plains", Biomes.meadow.get(), tiers[3]);
// tier 5
ATGBiomes.addBiome(land, "Plains", Biomes.orchard.get(), tiers[4]);
ATGBiomes.addBiome(land, "Plains", Biomes.overgrownGreens.get(), tiers[4]);
ATGBiomes.addBiome(land, "Plains", Biomes.lavenderFields.get(), tiers[4]);
if (orchardGen) ATGBiomes.addBiome(land, "Plains", Biomes.orchard.get(), tiers[4]);
if (overgrownGreensGen) ATGBiomes.addBiome(land, "Plains", Biomes.overgrownGreens.get(), tiers[4]);
if (lavenderFieldsGen) ATGBiomes.addBiome(land, "Plains", Biomes.lavenderFields.get(), tiers[4]);
// tier 6
ATGBiomes.addBiome(land, "Plains", Biomes.garden.get(), tiers[5]);
if (gardenGen) ATGBiomes.addBiome(land, "Plains", Biomes.garden.get(), tiers[5]);
}
private static void addIcePlainsBiomesGroup()
@ -168,22 +169,22 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.addBiome(land, "Ice Plains", Biomes.alps.get(), tiers[0]);
if (alpsGen) ATGBiomes.addBiome(land, "Ice Plains", Biomes.alps.get(), tiers[0]);
// tier 2
// tier 3
ATGBiomes.addBiome(land, "Ice Plains", Biomes.polar.get(), tiers[2]);
ATGBiomes.addBiome(land, "Ice Plains", Biomes.glacier.get(), tiers[2]);
ATGBiomes.addGenMod(Biomes.glacier.get(), new GenModGlacier());
ATGBiomes.addBiome(land, "Ice Plains", Biomes.arctic.get(), tiers[2]);
if (polarGen) ATGBiomes.addBiome(land, "Ice Plains", Biomes.polar.get(), tiers[2]);
if (glacierGen) ATGBiomes.addBiome(land, "Ice Plains", Biomes.glacier.get(), tiers[2]);
if (glacierGen) ATGBiomes.addGenMod(Biomes.glacier.get(), new GenModGlacier());
if (arcticGen) ATGBiomes.addBiome(land, "Ice Plains", Biomes.arctic.get(), tiers[2]);
// tier 4
// tier 5
// tier 6
ATGBiomes.addBiome(land, "Ice Plains", Biomes.icyHills.get(), tiers[5]);
if (icyHillsGen) ATGBiomes.addBiome(land, "Ice Plains", Biomes.icyHills.get(), tiers[5]);
}
private static void addTaigaBiomesGroup()
@ -193,22 +194,22 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Taiga", BiomeGenBase.taiga, Biomes.taigaNew.get(), tiers[0]);
if (taigaGen) ATGBiomes.replaceBiome(land, "Taiga", BiomeGenBase.taiga, Biomes.taigaNew.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Taiga", Biomes.alpsForest.get(), tiers[1]);
ATGBiomes.addBiome(land, "Taiga", Biomes.coniferousForestSnow.get(), tiers[1]);
ATGBiomes.addBiome(land, "Taiga", Biomes.frostForest.get(), tiers[1]);
if (alpsGen) ATGBiomes.addBiome(land, "Taiga", Biomes.alpsForest.get(), tiers[1]);
if (coniferousForestSnowGen) ATGBiomes.addBiome(land, "Taiga", Biomes.coniferousForestSnow.get(), tiers[1]);
if (frostForestGen) ATGBiomes.addBiome(land, "Taiga", Biomes.frostForest.get(), tiers[1]);
// tier 3
// tier 4
// tier 5
ATGBiomes.addBiome(land, "Taiga", Biomes.deadForestSnow.get(), tiers[4]);
if (deadForestSnowGen) ATGBiomes.addBiome(land, "Taiga", Biomes.deadForestSnow.get(), tiers[4]);
// tier 6
ATGBiomes.addBiome(land, "Taiga", Biomes.icyHills.get(), tiers[5] * nb);
if (icyHillsGen) ATGBiomes.addBiome(land, "Taiga", Biomes.icyHills.get(), tiers[5] * nb);
}
private static void addDesertBiomesGroup()
@ -218,21 +219,21 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Desert", BiomeGenBase.desert, Biomes.desertNew.get(), tiers[0]);
if (desertGen) ATGBiomes.replaceBiome(land, "Desert", BiomeGenBase.desert, Biomes.desertNew.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Desert", Biomes.dunes.get(), tiers[1]);
if (dunesGen) ATGBiomes.addBiome(land, "Desert", Biomes.dunes.get(), tiers[1]);
// tier 3
ATGBiomes.addBiome(land, "Desert", Biomes.outback.get(), tiers[2]);
if (outbackGen) ATGBiomes.addBiome(land, "Desert", Biomes.outback.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(land, "Desert", Biomes.lushDesert.get(), tiers[3]);
if (lushDesertGen) ATGBiomes.addBiome(land, "Desert", Biomes.lushDesert.get(), tiers[3]);
// tier 5
// tier 6
ATGBiomes.addBiome(land, "Desert", Biomes.oasis.get(), tiers[5]);
if (oasisGen) ATGBiomes.addBiome(land, "Desert", Biomes.oasis.get(), tiers[5]);
}
private static void addShrublandBiomesGroup()
@ -242,17 +243,17 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Shrubland", ATGBiomes.getBiome("Shrubland"), Biomes.shrubland.get(), tiers[0]);
if (shrublandGen) ATGBiomes.replaceBiome(land, "Shrubland", ATGBiomes.getBiome("Shrubland"), Biomes.shrubland.get(), tiers[0]);
// tier 2
// tier 3
ATGBiomes.addBiome(land, "Shrubland", Biomes.heathland.get(), tiers[2]);
if (heathlandGen) ATGBiomes.addBiome(land, "Shrubland", Biomes.heathland.get(), tiers[2]);
// tier 4
// tier 5
ATGBiomes.addBiome(land, "Shrubland", Biomes.thicket.get(), tiers[4]);
if (thicketGen) ATGBiomes.addBiome(land, "Shrubland", Biomes.thicket.get(), tiers[4]);
// tier 6
@ -265,21 +266,21 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Boreal Forest", ATGBiomes.getBiome("BorealForest"), Biomes.borealForest.get(), tiers[0]);
if (borealForestGen) ATGBiomes.replaceBiome(land, "Boreal Forest", ATGBiomes.getBiome("BorealForest"), Biomes.borealForest.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.coniferousForest.get(), tiers[1]);
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.spruceWoods.get(), tiers[1]);
if (coniferousForestGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.coniferousForest.get(), tiers[1]);
if (spruceWoodsGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.spruceWoods.get(), tiers[1]);
// tier 3
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.forestNew.get(), tiers[2] * nb); // out of base group
if (forestGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.forestNew.get(), tiers[2] * nb); // out of base group
// tier 4
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.shield.get(), tiers[3]);
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.timber.get(), tiers[3]);
if (shieldGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.shield.get(), tiers[3]);
if (timberGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.timber.get(), tiers[3]);
// tier 5
ATGBiomes.addBiome(land, "Boreal Forest", Biomes.deadForest.get(), tiers[4]);
if (deadForestGen) ATGBiomes.addBiome(land, "Boreal Forest", Biomes.deadForest.get(), tiers[4]);
// tier 6
@ -292,20 +293,20 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Tundra", ATGBiomes.getBiome("Tundra"), Biomes.tundra.get(), tiers[0]);
if (tundraGen) ATGBiomes.replaceBiome(land, "Tundra", ATGBiomes.getBiome("Tundra"), Biomes.tundra.get(), tiers[0]);
// tier 2
// tier 3
ATGBiomes.addBiome(land, "Tundra", BiomeGenBase.icePlains, tiers[2]);
ATGBiomes.addBiome(land, "Tundra", BiomeGenBase.icePlains, tiers[2]);
// tier 4
// tier 5
ATGBiomes.addBiome(land, "Tundra", Biomes.borealForest.get(), tiers[4] * nb); // out of base group
if (borealForestGen) ATGBiomes.addBiome(land, "Tundra", Biomes.borealForest.get(), tiers[4] * nb); // out of base group
// tier 6
ATGBiomes.addBiome(land, "Tundra", Biomes.steppe.get(), tiers[5]);
if (steppeGen) ATGBiomes.addBiome(land, "Tundra", Biomes.steppe.get(), tiers[5]);
}
private static void addSteppeBiomesGroup()
@ -319,15 +320,15 @@ public class ATGIntegration {
// tier 2
// tier 3
ATGBiomes.addBiome(land, "Steppe", Biomes.crag.get(), tiers[2]);
if (cragGen) ATGBiomes.addBiome(land, "Steppe", Biomes.crag.get(), tiers[2]);
// tier 4
// tier 5
ATGBiomes.addBiome(land, "Steppe", Biomes.mountain.get(), tiers[4]);
if (mountainGen) ATGBiomes.addBiome(land, "Steppe", Biomes.mountain.get(), tiers[4]);
// tier 6
ATGBiomes.addBiome(land, "Steppe", Biomes.deadForest.get(), tiers[5]);
if (deadForestGen) ATGBiomes.addBiome(land, "Steppe", Biomes.deadForest.get(), tiers[5]);
}
private static void addSavannahBiomesGroup()
@ -337,20 +338,20 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.replaceBiome(land, "Savanna", ATGBiomes.getBiome("Savanna"), Biomes.savanna.get(), 1.0);
if (savannaGen) ATGBiomes.replaceBiome(land, "Savanna", ATGBiomes.getBiome("Savanna"), Biomes.savanna.get(), 1.0);
// tier 2
// tier 3
ATGBiomes.addBiome(land, "Savanna", Biomes.scrubland.get(), tiers[2]);
ATGBiomes.addBiome(land, "Savanna", Biomes.outback.get(), tiers[2] * nb); // out of base group
ATGBiomes.addBiome(land, "Savanna", Biomes.steppe.get(), tiers[2]);
if (scrublandGen) ATGBiomes.addBiome(land, "Savanna", Biomes.scrubland.get(), tiers[2]);
if (outbackGen) ATGBiomes.addBiome(land, "Savanna", Biomes.outback.get(), tiers[2] * nb); // out of base group
if (steppeGen) ATGBiomes.addBiome(land, "Savanna", Biomes.steppe.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(land, "Savanna", Biomes.lushDesert.get(), tiers[3]);
if (lushDesertGen) ATGBiomes.addBiome(land, "Savanna", Biomes.lushDesert.get(), tiers[3]);
// tier 5
ATGBiomes.addBiome(land, "Savanna", Biomes.brushland.get(), tiers[4]);
if (brushlandGen) ATGBiomes.addBiome(land, "Savanna", Biomes.brushland.get(), tiers[4]);
// tier 6
@ -365,17 +366,17 @@ public class ATGIntegration {
// tier 1
// tier 2
ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.tropics.get(), tiers[1]);
if (tropicsGen) ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.tropics.get(), tiers[1]);
// tier 3
// tier 4
ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.bambooForest.get(), tiers[3]);
if (bambooForestGen) ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.bambooForest.get(), tiers[3]);
// tier 5
// tier 6
ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.sacredSprings.get(), tiers[5]);
if (sacredSpringsGen) ATGBiomes.addBiome(land, "Tropical Shrubland", Biomes.sacredSprings.get(), tiers[5]);
}
private static void addWoodlandBiomesGroup()
@ -387,17 +388,17 @@ public class ATGIntegration {
// tier 1
// tier 2
ATGBiomes.addBiome(land, "Woodland", Biomes.woodland.get(), tiers[1]);
if (woodlandGen) ATGBiomes.addBiome(land, "Woodland", Biomes.woodland.get(), tiers[1]);
// tier 3
// tier 4
ATGBiomes.addBiome(land, "Woodland", Biomes.thicket.get(), tiers[3]);
if (thicketGen) ATGBiomes.addBiome(land, "Woodland", Biomes.thicket.get(), tiers[3]);
// tier 5
// tier 6
ATGBiomes.addBiome(land, "Woodland", Biomes.birchForest.get(), tiers[5]);
if (birchForestGen) ATGBiomes.addBiome(land, "Woodland", Biomes.birchForest.get(), tiers[5]);
}
private static void addMesaBiomesGroup()
@ -406,10 +407,10 @@ public class ATGIntegration {
// Mesa
// ########################
ATGBiomes.addBiome(land, "Mesa", Biomes.badlands.get(), tiers[0]);
ATGBiomes.addBiome(land, "Mesa", Biomes.canyon.get(), tiers[0]);
if (badlandsGen) ATGBiomes.addBiome(land, "Mesa", Biomes.badlands.get(), tiers[0]);
if (canyonGen) ATGBiomes.addBiome(land, "Mesa", Biomes.canyon.get(), tiers[0]);
ATGBiomes.addGenMod(Biomes.canyonRavine.get(), new GenModCanyonRavine());
if (canyonGen) ATGBiomes.addGenMod(Biomes.canyonRavine.get(), new GenModCanyonRavine());
}
private static void addSwamplandBiomesGroup()
@ -419,44 +420,44 @@ public class ATGIntegration {
// ########################
// tier 1
ATGBiomes.addBiome(coast, "Swampland", Biomes.wetland.get(), tiers[0]);
if (wetlandGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.wetland.get(), tiers[0]);
// tier 2
ATGBiomes.addBiome(coast, "Swampland", Biomes.marsh.get(), tiers[1]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.lushSwamp.get(), tiers[1]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.bayou.get(), tiers[1]);
if (marshGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.marsh.get(), tiers[1]);
if (lushSwampGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.lushSwamp.get(), tiers[1]);
if (bayouGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.bayou.get(), tiers[1]);
// tier 3
ATGBiomes.replaceBiome(coast, "Swampland", BiomeGenBase.swampland, Biomes.swamplandNew.get(), tiers[2]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.fen.get(), tiers[2]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.bog.get(), tiers[2]);
if (swamplandGen) ATGBiomes.replaceBiome(coast, "Swampland", BiomeGenBase.swampland, Biomes.swamplandNew.get(), tiers[2]);
if (fenGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.fen.get(), tiers[2]);
if (bogGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.bog.get(), tiers[2]);
// tier 4
ATGBiomes.addBiome(coast, "Swampland", Biomes.moor.get(), tiers[3]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.deadSwamp.get(), tiers[3]);
if (moorGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.moor.get(), tiers[3]);
if (deadSwampGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.deadSwamp.get(), tiers[3]);
// tier 5
ATGBiomes.addBiome(coast, "Swampland", Biomes.quagmire.get(), tiers[4]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.sludgepit.get(), tiers[4]);
if (quagmireGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.quagmire.get(), tiers[4]);
if (sludgepitGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.sludgepit.get(), tiers[4]);
// tier 6
ATGBiomes.addBiome(coast, "Swampland", Biomes.ominousWoods.get(), tiers[5]);
ATGBiomes.addBiome(coast, "Swampland", Biomes.silkglades.get(), tiers[5]);
if (ominousWoodsGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.ominousWoods.get(), tiers[5]);
if (silkgladesGen) ATGBiomes.addBiome(coast, "Swampland", Biomes.silkglades.get(), tiers[5]);
// swamp modifiers
IGenMod swampmod = ATGBiomes.getGenMod(BiomeGenBase.swampland).get();
ATGBiomes.addGenMod(Biomes.wetland.get(), swampmod);
ATGBiomes.addGenMod(Biomes.lushSwamp.get(), swampmod);
ATGBiomes.addGenMod(Biomes.bayou.get(), swampmod);
ATGBiomes.addGenMod(Biomes.swamplandNew.get(), swampmod);
ATGBiomes.addGenMod(Biomes.fen.get(), swampmod);
ATGBiomes.addGenMod(Biomes.bog.get(), swampmod);
ATGBiomes.addGenMod(Biomes.moor.get(), swampmod);
ATGBiomes.addGenMod(Biomes.deadSwamp.get(), swampmod);
ATGBiomes.addGenMod(Biomes.quagmire.get(), swampmod);
ATGBiomes.addGenMod(Biomes.sludgepit.get(), swampmod);
ATGBiomes.addGenMod(Biomes.ominousWoods.get(), swampmod);
ATGBiomes.addGenMod(Biomes.silkglades.get(), swampmod);
if (wetlandGen) ATGBiomes.addGenMod(Biomes.wetland.get(), swampmod);
if (lushSwampGen) ATGBiomes.addGenMod(Biomes.lushSwamp.get(), swampmod);
if (bayouGen) ATGBiomes.addGenMod(Biomes.bayou.get(), swampmod);
if (swamplandGen) ATGBiomes.addGenMod(Biomes.swamplandNew.get(), swampmod);
if (fenGen) ATGBiomes.addGenMod(Biomes.fen.get(), swampmod);
if (bogGen) ATGBiomes.addGenMod(Biomes.bog.get(), swampmod);
if (moorGen) ATGBiomes.addGenMod(Biomes.moor.get(), swampmod);
if (deadSwampGen) ATGBiomes.addGenMod(Biomes.deadSwamp.get(), swampmod);
if (quagmireGen) ATGBiomes.addGenMod(Biomes.quagmire.get(), swampmod);
if (sludgepitGen) ATGBiomes.addGenMod(Biomes.sludgepit.get(), swampmod);
if (ominousWoodsGen) ATGBiomes.addGenMod(Biomes.ominousWoods.get(), swampmod);
if (silkgladesGen) ATGBiomes.addGenMod(Biomes.silkglades.get(), swampmod);
}
private static void addBeachBiomesGroup()
@ -465,9 +466,9 @@ public class ATGIntegration {
// Beaches
// ########################
ATGBiomes.addBiome(coast, "Beach", Biomes.beachOvergrown.get(), 0.2);
if (overgrownBeachGen) ATGBiomes.addBiome(coast, "Beach", Biomes.beachOvergrown.get(), 0.2);
ATGBiomes.replaceBiome(coast, "Gravel Beach", ATGBiomes.getBiome("GravelBeach"), Biomes.beachGravel.get(), 1.0);
if (gravelBeachGen) ATGBiomes.replaceBiome(coast, "Gravel Beach", ATGBiomes.getBiome("GravelBeach"), Biomes.beachGravel.get(), 1.0);
}
private static void addOceanBiomesGroup()
@ -476,10 +477,10 @@ public class ATGIntegration {
// Oceans
// ########################
ATGBiomes.addBiome(sea, "Ocean", Biomes.oceanCoral.get(), 0.05);
ATGBiomes.addBiome(sea, "Ocean", Biomes.oceanKelp.get(), 0.1);
if (coralReefGen) ATGBiomes.addBiome(sea, "Ocean", Biomes.oceanCoral.get(), 0.05);
if (kelpForestGen) ATGBiomes.addBiome(sea, "Ocean", Biomes.oceanKelp.get(), 0.1);
ATGBiomes.replaceBiome(sea, "Deep Ocean", BiomeGenBase.ocean, Biomes.oceanAbyss.get(), 1.0);
ATGBiomes.addGenMod(Biomes.oceanAbyss.get(), new GenModAbyss());
if (oceanicAbyssGen) ATGBiomes.replaceBiome(sea, "Deep Ocean", BiomeGenBase.ocean, Biomes.oceanAbyss.get(), 1.0);
if (oceanicAbyssGen) ATGBiomes.addGenMod(Biomes.oceanAbyss.get(), new GenModAbyss());
}
}