BiomesOPlenty/src/minecraft/biomesoplenty/configuration/BOPBiomes.java

1375 lines
64 KiB
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty.configuration;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.world.WorldType;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.BiomeDictionary;
import net.minecraftforge.common.BiomeDictionary.Type;
2013-05-03 13:00:44 +00:00
import net.minecraftforge.common.BiomeManager;
import biomesoplenty.api.Biomes;
2013-07-09 03:55:12 +00:00
import biomesoplenty.biomes.*;
2013-05-07 19:14:44 +00:00
import biomesoplenty.world.WorldTypeBOP;
2013-05-03 13:00:44 +00:00
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableSet;
import cpw.mods.fml.common.registry.GameRegistry;
public class BOPBiomes {
2013-05-31 10:34:02 +00:00
2013-05-07 19:14:44 +00:00
public static WorldTypeBOP WTBiomesOP;
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static final Set<WorldType> worldTypes = new HashSet();
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
public static int getLastBiomeID()
{
int x;
2013-08-03 00:07:43 +00:00
for(x = 255; x >= 0; x--)
{
2013-05-31 10:34:02 +00:00
if (BiomeGenBase.biomeList[x] == null)
2013-05-03 13:00:44 +00:00
{
break;
}
}
return x;
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
public static void init()
{
2013-05-31 10:34:02 +00:00
// Initialize biomes
2013-05-03 13:00:44 +00:00
initializeBiomes();
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
//Initialize new world type
2013-05-07 19:14:44 +00:00
WTBiomesOP = new WorldTypeBOP();
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
// Adding biomes to World Types
addBiomes();
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.jungleHills);
//Biome Dictionary
addToBiomeDictionary();
//Spawning
addSpawnBiomes();
2013-05-31 10:34:02 +00:00
//Village spawning
2013-05-03 13:00:44 +00:00
addVillageBiomes();
//Stronghold spawning
addStrongholdBiomes();
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
registerBiomes();
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void initializeBiomes()
{
2013-08-03 00:07:43 +00:00
Biomes.alps = Optional.of((new BiomeGenAlps(BOPConfiguration.IDs.alpsID)).setColor(353825).setBiomeName("Alps").func_76733_a(5159473).setTemperatureRainfall(0.0F, 0.0F).setMinMaxHeight(2.0F, 3.0F));
Biomes.alpsForest = Optional.of((new BiomeGenAlpsForest(BOPConfiguration.IDs.alpsForestID)).setColor(353825).setBiomeName("Alps Mountainside").func_76733_a(5159473).setTemperatureRainfall(0.0F, 0.0F).setMinMaxHeight(1.0F, 2.0F));
Biomes.alpsBase = Optional.of((new BiomeGenAlpsBase(BOPConfiguration.IDs.alpsBaseID)).setColor(353825).setBiomeName("Alps Forest").func_76733_a(5159473).setTemperatureRainfall(0.5F, 0.4F).setMinMaxHeight(0.2F, 0.5F));
Biomes.arctic = Optional.of((new BiomeGenArctic(BOPConfiguration.IDs.arcticID)).setColor(14090235).setBiomeName("Arctic").setEnableSnow().setTemperatureRainfall(0.05F, 0.0F).setMinMaxHeight(0.2F, 0.2F));
Biomes.badlands = Optional.of((new BiomeGenBadlands(BOPConfiguration.IDs.badlandsID)).setColor(16421912).setBiomeName("Badlands").setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.3F, 0.9F));
Biomes.bambooForest = Optional.of((new BiomeGenBambooForest(BOPConfiguration.IDs.bambooForestID)).setColor(112).setBiomeName("Bamboo Forest").setMinMaxHeight(0.2F, 0.4F).setTemperatureRainfall(1.2F, 0.9F));
Biomes.bayou = Optional.of((new BiomeGenBayou(BOPConfiguration.IDs.bayouID)).setColor(522674).setBiomeName("Bayou").func_76733_a(9154376).setMinMaxHeight(0.1F, 0.3F).setTemperatureRainfall(0.5F, 0.9F));
Biomes.beachGravel = Optional.of((new BiomeGenBeachGravel(BOPConfiguration.IDs.beachGravelID)).setColor(16440917).setBiomeName("Gravel Beach").setTemperatureRainfall(0.2F, 0.8F).setMinMaxHeight(0.0F, 0.1F));
Biomes.beachOvergrown = Optional.of((new BiomeGenBeachOvergrown(BOPConfiguration.IDs.beachOvergrownID)).setColor(16440917).setBiomeName("Overgrown Beach").setTemperatureRainfall(0.8F, 0.5F).setMinMaxHeight(0.0F, 0.1F));
Biomes.birchForest = Optional.of((new BiomeGenBirchForest(BOPConfiguration.IDs.birchForestID)).setColor(353825).setBiomeName("Birch Forest").func_76733_a(5159473).setTemperatureRainfall(0.4F, 0.3F));
2013-08-06 22:16:08 +00:00
Biomes.bog = Optional.of((new BiomeGenBog(BOPConfiguration.IDs.bogID)).setColor(522674).setBiomeName("Bog").func_76733_a(9154376).setMinMaxHeight(0.3F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
2013-08-03 00:07:43 +00:00
Biomes.borealForest = Optional.of((new BiomeGenBorealForest(BOPConfiguration.IDs.borealForestID)).setColor(353825).setBiomeName("Boreal Forest").func_76733_a(5159473).setMinMaxHeight(0.2F, 1.0F).setTemperatureRainfall(0.6F, 0.7F));
Biomes.brushland = Optional.of((new BiomeGenBrushland(BOPConfiguration.IDs.brushlandID)).setColor(16421912).setBiomeName("Brushland").setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.3F, 0.3F));
Biomes.canyon = Optional.of((new BiomeGenCanyon(BOPConfiguration.IDs.canyonID)).setColor(9286496).setBiomeName("Canyon").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(1.5F, 2.0F));
Biomes.canyonRavine = Optional.of((new BiomeGenCanyonRavine(BOPConfiguration.IDs.canyonRavineID)).setColor(9286496).setBiomeName("Canyon Ravine").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.4F));
Biomes.chaparral = Optional.of((new BiomeGenChaparral(BOPConfiguration.IDs.chaparralID)).setColor(9286496).setBiomeName("Chaparral").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.6F));
Biomes.cherryBlossomGrove = Optional.of((new BiomeGenCherryBlossomGrove(BOPConfiguration.IDs.cherryBlossomGroveID)).setColor(9286496).setBiomeName("Cherry Blossom Grove").setMinMaxHeight(0.3F, 0.4F).setTemperatureRainfall(0.7F, 0.8F));
Biomes.coniferousForest = Optional.of((new BiomeGenConiferousForest(BOPConfiguration.IDs.coniferousForestID)).setColor(747097).setBiomeName("Coniferous Forest").func_76733_a(5159473).setTemperatureRainfall(0.5F, 0.4F).setMinMaxHeight(0.2F, 0.8F));
Biomes.coniferousForestSnow = Optional.of((new BiomeGenConiferousForestSnow(BOPConfiguration.IDs.coniferousForestSnowID)).setColor(14090235).setBiomeName("Snowy Coniferous Forest").setTemperatureRainfall(0.0F, 0.0F).setMinMaxHeight(0.2F, 0.7F));
Biomes.crag = Optional.of((new BiomeGenCrag(BOPConfiguration.IDs.cragID)).setColor(9286496).setBiomeName("Crag").setMinMaxHeight(2.0F, 3.0F).setTemperatureRainfall(0.4F, 0.2F));
Biomes.deadForest = Optional.of((new BiomeGenDeadForest(BOPConfiguration.IDs.deadForestID)).setColor(522674).setBiomeName("Dead Forest").func_76733_a(9154376).setMinMaxHeight(0.2F, 0.7F).setTemperatureRainfall(1.2F, 0.1F));
Biomes.deadForestSnow = Optional.of((new BiomeGenDeadForestSnow(BOPConfiguration.IDs.deadForestSnowID)).setColor(522674).setBiomeName("Snowy Dead Forest").func_76733_a(9154376).setEnableSnow().setTemperatureRainfall(0.05F, 0.8F).setMinMaxHeight(0.2F, 0.7F));
Biomes.deadSwamp = Optional.of((new BiomeGenDeadSwamp(BOPConfiguration.IDs.deadSwampID)).setColor(522674).setBiomeName("Dead Swamp").func_76733_a(9154376).setMinMaxHeight(0.1F, 0.2F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.deadlands = Optional.of((new BiomeGenDeadlands(BOPConfiguration.IDs.deadlandsID)).setColor(522674).setBiomeName("Deadlands").setDisableRain().func_76733_a(9154376).setMinMaxHeight(0.1F, 0.5F).setTemperatureRainfall(2.0F, 0.0F));
Biomes.deciduousForest = Optional.of((new BiomeGenDeciduousForest(BOPConfiguration.IDs.deciduousForestID)).setColor(353825).setBiomeName("Deciduous Forest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F));
Biomes.dunes = Optional.of((new BiomeGenDunes(BOPConfiguration.IDs.dunesID)).setColor(13786898).setBiomeName("Dunes").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.5F, 1.3F));
Biomes.fen = Optional.of((new BiomeGenFen(BOPConfiguration.IDs.fenID)).setColor(9286496).setBiomeName("Fen").setTemperatureRainfall(0.4F, 0.0F).setMinMaxHeight(0.2F, 0.4F));
Biomes.field = Optional.of((new BiomeGenField(BOPConfiguration.IDs.fieldID)).setColor(9286496).setBiomeName("Field").setTemperatureRainfall(0.6F, 0.7F).setMinMaxHeight(0.3F, 0.3F));
Biomes.fieldForest = Optional.of((new BiomeGenFieldForest(BOPConfiguration.IDs.fieldForestID)).setColor(9286496).setBiomeName("Forested Field").setTemperatureRainfall(0.6F, 0.7F).setMinMaxHeight(0.3F, 0.3F));
Biomes.frostForest = Optional.of((new BiomeGenFrostForest(BOPConfiguration.IDs.frostForestID)).setColor(14090235).setBiomeName("Frost Forest").setEnableSnow().setTemperatureRainfall(0.0F, 0.0F).setMinMaxHeight(0.3F, 0.4F));
Biomes.fungiForest = Optional.of((new BiomeGenFungiForest(BOPConfiguration.IDs.fungiForestID)).setColor(747097).setBiomeName("Fungi Forest").func_76733_a(5159473).setTemperatureRainfall(0.9F, 1.0F).setMinMaxHeight(0.2F, 0.5F));
Biomes.garden = Optional.of((new BiomeGenGarden(BOPConfiguration.IDs.gardenID)).setColor(9286496).setBiomeName("Garden").setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.3F, 0.4F));
2013-08-06 22:16:08 +00:00
Biomes.glacier = Optional.of((new BiomeGenGlacier(BOPConfiguration.IDs.glacierID)).setColor(6316128).setBiomeName("Glacier").setEnableSnow().setMinMaxHeight(0.4F, 0.8F).setTemperatureRainfall(0.0F, 0.0F));
2013-08-07 02:03:47 +00:00
Biomes.grassland = Optional.of((new BiomeGenGrassland(BOPConfiguration.IDs.grasslandID)).setColor(9286496).setBiomeName("Grassland").setTemperatureRainfall(0.7F, 0.7F).setMinMaxHeight(0.2F, 0.5F));
2013-08-03 00:07:43 +00:00
Biomes.grove = Optional.of((new BiomeGenGrove(BOPConfiguration.IDs.groveID)).setColor(9286496).setBiomeName("Grove").setTemperatureRainfall(0.4F, 0.8F).setMinMaxHeight(0.3F, 0.4F));
Biomes.heathland = Optional.of((new BiomeGenHeathland(BOPConfiguration.IDs.heathlandID)).setColor(353825).setBiomeName("Heathland").func_76733_a(5159473).setTemperatureRainfall(0.8F, 0.1F).setMinMaxHeight(0.3F, 0.4F));
Biomes.highland = Optional.of((new BiomeGenHighland(BOPConfiguration.IDs.highlandID)).setColor(6316128).setBiomeName("Highland").setMinMaxHeight(0.9F, 1.9F).setTemperatureRainfall(0.5F, 0.5F));
Biomes.hotSprings = Optional.of((new BiomeGenHotSprings(BOPConfiguration.IDs.hotSpringsID)).setColor(10486015).setBiomeName("Hot Springs").setMinMaxHeight(0.2F, 0.5F).setTemperatureRainfall(0.5F, 0.7F));
Biomes.icyHills = Optional.of((new BiomeGenIcyHills(BOPConfiguration.IDs.icyHillsID)).setColor(14090235).setBiomeName("Icy Hills").setEnableSnow().setTemperatureRainfall(0.0F, 0.0F).setMinMaxHeight(0.3F, 0.8F));
Biomes.jadeCliffs = Optional.of((new BiomeGenJadeCliffs(BOPConfiguration.IDs.jadeCliffsID)).setColor(14090235).setBiomeName("Jade Cliffs").setTemperatureRainfall(0.5F, 0.1F).setMinMaxHeight(0.5F, 1.5F));
Biomes.lushDesert = Optional.of((new BiomeGenLushDesert(BOPConfiguration.IDs.lushDesertID)).setColor(16421912).setBiomeName("Lush Desert").setTemperatureRainfall(0.8F, 0.2F).setMinMaxHeight(0.2F, 0.9F));
Biomes.lushSwamp = Optional.of((new BiomeGenLushSwamp(BOPConfiguration.IDs.lushSwampID)).setColor(522674).setBiomeName("Lush Swamp").func_76733_a(9154376).setMinMaxHeight(0.2F, 0.3F).setTemperatureRainfall(0.7F, 1.0F));
Biomes.mangrove = Optional.of((new BiomeGenMangrove(BOPConfiguration.IDs.mangroveID)).setColor(16440917).setBiomeName("Mangrove").setMinMaxHeight(0.1F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.mapleWoods = Optional.of((new BiomeGenMapleWoods(BOPConfiguration.IDs.mapleWoodsID)).setColor(747097).setBiomeName("Maple Woods").func_76733_a(5159473).setTemperatureRainfall(0.2F, 0.8F).setMinMaxHeight(0.3F, 0.6F));
Biomes.marsh = Optional.of((new BiomeGenMarsh(BOPConfiguration.IDs.marshID)).setColor(10486015).setBiomeName("Marsh").setMinMaxHeight(-0.5F, 0.0F).setTemperatureRainfall(0.5F, 0.9F));
Biomes.meadow = Optional.of((new BiomeGenMeadow(BOPConfiguration.IDs.meadowID)).setColor(9286496).setBiomeName("Meadow").setTemperatureRainfall(0.7F, 0.7F));
Biomes.meadowForest = Optional.of((new BiomeGenMeadowForest(BOPConfiguration.IDs.meadowForestID)).setColor(9286496).setBiomeName("Meadow Forest").setTemperatureRainfall(0.7F, 0.7F));
Biomes.mesa = Optional.of((new BiomeGenMesa(BOPConfiguration.IDs.mesaID)).setColor(16421912).setBiomeName("Mesa").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.4F, 2.0F));
Biomes.moor = Optional.of((new BiomeGenMoor(BOPConfiguration.IDs.moorID)).setColor(16421912).setBiomeName("Moor").setTemperatureRainfall(0.5F, 1.0F).setMinMaxHeight(0.7F, 0.8F));
Biomes.mountain = Optional.of((new BiomeGenMountain(BOPConfiguration.IDs.mountainID)).setColor(14090235).setBiomeName("Mountain").setTemperatureRainfall(0.5F, 0.1F).setMinMaxHeight(1.2F, 1.2F).setMinMaxHeight(0.2F, 0.5F));
Biomes.mysticGrove = Optional.of((new BiomeGenMysticGrove(BOPConfiguration.IDs.mysticGroveID)).setColor(353825).setBiomeName("Mystic Grove").setDisableRain().func_76733_a(5159473).setTemperatureRainfall(0.9F, 1.0F));
Biomes.netherBase = Optional.of((new BiomeGenNetherBase(BOPConfiguration.IDs.netherBaseID)).setColor(16711680).setBiomeName("Nether").setDisableRain().setTemperatureRainfall(2.0F, 0.0F));
Biomes.netherGarden = Optional.of((new BiomeGenNetherGarden(BOPConfiguration.IDs.netherGardenID)).setColor(16711680).setBiomeName("Undergarden").setDisableRain().setTemperatureRainfall(2.0F, 0.0F));
Biomes.netherDesert = Optional.of((new BiomeGenNetherDesert(BOPConfiguration.IDs.netherDesertID)).setColor(16711680).setBiomeName("Corrupted Sands").setDisableRain().setTemperatureRainfall(2.0F, 0.0F));
Biomes.netherLava = Optional.of((new BiomeGenNetherLava(BOPConfiguration.IDs.netherLavaID)).setColor(16711680).setBiomeName("Phantasmagoric Inferno").setDisableRain().setTemperatureRainfall(2.0F, 0.0F));
Biomes.netherBone = Optional.of((new BiomeGenNetherBone(BOPConfiguration.IDs.netherBoneID)).setColor(16711680).setBiomeName("Boneyard").setDisableRain().setTemperatureRainfall(2.0F, 0.0F));
Biomes.oasis = Optional.of((new BiomeGenOasis(BOPConfiguration.IDs.oasisID)).setColor(16421912).setBiomeName("Oasis").setTemperatureRainfall(1.9F, 2.0F).setMinMaxHeight(0.3F, 0.4F));
Biomes.oceanCoral = Optional.of((new BiomeGenOceanCoral(BOPConfiguration.IDs.oceanCoralID)).setColor(10486015).setBiomeName("Coral Reef").setMinMaxHeight(-0.4F, -0.1F).setTemperatureRainfall(0.5F, 0.9F));
Biomes.oceanKelp = Optional.of((new BiomeGenOceanKelp(BOPConfiguration.IDs.oceanKelpID)).setColor(10486015).setBiomeName("Kelp Forest").setMinMaxHeight(-0.4F, -0.1F).setTemperatureRainfall(0.5F, 0.9F));
Biomes.ominousWoods = Optional.of((new BiomeGenOminousWoods(BOPConfiguration.IDs.ominousWoodsID)).setColor(353825).setBiomeName("Ominous Woods").setDisableRain().func_76733_a(5159473).setTemperatureRainfall(0.8F, 0.9F));
Biomes.ominousWoodsThick = Optional.of((new BiomeGenOminousWoodsThick(BOPConfiguration.IDs.ominousWoodsThickID)).setColor(353825).setBiomeName("Thick Ominous Woods").setDisableRain().func_76733_a(5159473).setTemperatureRainfall(0.8F, 0.9F));
Biomes.orchard = Optional.of((new BiomeGenOrchard(BOPConfiguration.IDs.orchardID)).setColor(9286496).setBiomeName("Orchard").setTemperatureRainfall(0.8F, 0.4F));
Biomes.originValley = Optional.of((new BiomeGenOriginValley(BOPConfiguration.IDs.originValleyID)).setColor(353825).setBiomeName("Origin Valley").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.2F, 0.6F));
Biomes.outback = Optional.of((new BiomeGenOutback(BOPConfiguration.IDs.outbackID)).setColor(9286496).setBiomeName("Outback").setTemperatureRainfall(0.8F, 0.0F).setMinMaxHeight(0.3F, 0.4F));
Biomes.pasture = Optional.of((new BiomeGenPasture(BOPConfiguration.IDs.pastureID)).setColor(9286496).setBiomeName("Pasture").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.4F));
Biomes.pastureMeadow = Optional.of((new BiomeGenPastureMeadow(BOPConfiguration.IDs.pastureMeadowID)).setColor(9286496).setBiomeName("Pasture Meadow").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.4F));
Biomes.pastureThin = Optional.of((new BiomeGenPastureThin(BOPConfiguration.IDs.pastureThinID)).setColor(9286496).setBiomeName("Thinned Pasture").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.4F));
Biomes.polar = Optional.of((new BiomeGenPolar(BOPConfiguration.IDs.polarID)).setColor(6316128).setBiomeName("Polar").setMinMaxHeight(-0.5F, 0.0F).setTemperatureRainfall(0.0F, 0.0F));
Biomes.prairie = Optional.of((new BiomeGenPrairie(BOPConfiguration.IDs.prairieID)).setColor(353825).setBiomeName("Prairie").func_76733_a(5159473).setTemperatureRainfall(0.9F, 0.6F).setMinMaxHeight(0.3F, 0.4F));
Biomes.promisedLandForest = Optional.of((new BiomeGenPromisedLandForest(BOPConfiguration.IDs.promisedLandForestID)).setColor(112).setBiomeName("Wonderous Woods").setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.1F, 2.0F));
Biomes.promisedLandPlains = Optional.of((new BiomeGenPromisedLandPlains(BOPConfiguration.IDs.promisedLandPlainsID)).setColor(112).setBiomeName("Majestic Meadow").setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.1F, 2.0F));
Biomes.promisedLandSwamp = Optional.of((new BiomeGenPromisedLandSwamp(BOPConfiguration.IDs.promisedLandSwampID)).setColor(112).setBiomeName("Blessed Bog").setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.1F, 2.0F));
Biomes.quagmire = Optional.of((new BiomeGenQuagmire(BOPConfiguration.IDs.quagmireID)).setColor(522674).setBiomeName("Quagmire").func_76733_a(9154376).setMinMaxHeight(0.2F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.rainforest = Optional.of((new BiomeGenRainforest(BOPConfiguration.IDs.rainforestID)).setColor(5470985).setBiomeName("Rainforest").func_76733_a(5470985).setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.7F, 1.8F));
Biomes.redwoodForest = Optional.of((new BiomeGenRedwoodForest(BOPConfiguration.IDs.redwoodForestID)).setColor(747097).setBiomeName("Redwood Forest").func_76733_a(5159473).setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.3F, 0.4F));
Biomes.sacredSprings = Optional.of((new BiomeGenSacredSprings(BOPConfiguration.IDs.sacredSpringsID)).setColor(522674).setBiomeName("Sacred Springs").func_76733_a(9154376).setMinMaxHeight(0.4F, 1.2F).setTemperatureRainfall(1.2F, 0.9F));
Biomes.savanna = Optional.of((new BiomeGenSavanna(BOPConfiguration.IDs.savannaID)).setColor(9286496).setBiomeName("Savanna").setTemperatureRainfall(1.5F, 0.1F).setMinMaxHeight(0.3F, 0.4F));
Biomes.savannaPlateau = Optional.of((new BiomeGenSavannaPlateau(BOPConfiguration.IDs.savannaPlateauID)).setColor(9286496).setBiomeName("Savanna Plateau").setTemperatureRainfall(1.5F, 0.1F).setMinMaxHeight(0.9F, 0.9F));
Biomes.scrubland = Optional.of((new BiomeGenScrubland(BOPConfiguration.IDs.scrublandID)).setColor(9286496).setBiomeName("Scrubland").setTemperatureRainfall(1.2F, 0.0F).setMinMaxHeight(0.3F, 0.5F));
Biomes.seasonalForest = Optional.of((new BiomeGenSeasonalForest(BOPConfiguration.IDs.seasonalForestID)).setColor(353825).setBiomeName("Seasonal Forest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.3F, 0.7F));
Biomes.seasonalSpruceForest = Optional.of((new BiomeGenSeasonalSpruceForest(BOPConfiguration.IDs.seasonalSpruceForestID)).setColor(353825).setBiomeName("Seasonal Spruce Forest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.3F, 0.7F));
Biomes.shield = Optional.of((new BiomeGenShield(BOPConfiguration.IDs.shieldID)).setColor(522674).setBiomeName("Shield").func_76733_a(9154376).setMinMaxHeight(0.1F, 0.3F).setTemperatureRainfall(0.5F, 0.8F));
Biomes.shore = Optional.of((new BiomeGenShore(BOPConfiguration.IDs.shoreID)).setColor(9286496).setBiomeName("Shore").setMinMaxHeight(-1.0F, 0.4F).setTemperatureRainfall(0.8F, 0.4F));
Biomes.shrubland = Optional.of((new BiomeGenShrubland(BOPConfiguration.IDs.shrublandID)).setColor(9286496).setBiomeName("Shrubland").setMinMaxHeight(0.3F, 0.4F).setTemperatureRainfall(0.6F, 0.0F));
Biomes.shrublandForest = Optional.of((new BiomeGenShrublandForest(BOPConfiguration.IDs.shrublandForestID)).setColor(9286496).setBiomeName("Thick Shrubland").setMinMaxHeight(0.3F, 0.4F).setTemperatureRainfall(0.6F, 0.0F));
2013-08-08 22:54:45 +00:00
Biomes.silkglades = Optional.of((new BiomeGenSilkglades(BOPConfiguration.IDs.silkgladesID)).setColor(522674).setBiomeName("Silkglades").func_76733_a(9154376).setMinMaxHeight(0.3F, 0.3F).setTemperatureRainfall(0.5F, 0.9F));
2013-08-03 00:07:43 +00:00
Biomes.sludgepit = Optional.of((new BiomeGenSludgepit(BOPConfiguration.IDs.sludgepitID)).setColor(522674).setBiomeName("Sludgepit").func_76733_a(9154376).setMinMaxHeight(0.1F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.spruceWoods = Optional.of((new BiomeGenSpruceWoods(BOPConfiguration.IDs.spruceWoodsID)).setColor(353825).setBiomeName("Spruce Woods").func_76733_a(5159473).setTemperatureRainfall(0.6F, 0.7F));
Biomes.steppe = Optional.of((new BiomeGenSteppe(BOPConfiguration.IDs.steppeID)).setColor(9286496).setBiomeName("Steppe").setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.3F, 0.4F));
Biomes.temperateRainforest = Optional.of((new BiomeGenTemperateRainforest(BOPConfiguration.IDs.temperateRainforestID)).setColor(353825).setBiomeName("Temperate Rainforest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.2F, 1.2F));
Biomes.thicket = Optional.of((new BiomeGenThicket(BOPConfiguration.IDs.thicketID)).setColor(353825).setBiomeName("Thicket").func_76733_a(5159473).setTemperatureRainfall(0.6F, 0.2F).setMinMaxHeight(0.2F, 0.2F));
Biomes.timber = Optional.of((new BiomeGenTimber(BOPConfiguration.IDs.timberID)).setColor(353825).setBiomeName("Timber").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.3F, 0.4F));
Biomes.timberThin = Optional.of((new BiomeGenTimberThin(BOPConfiguration.IDs.timberThinID)).setColor(353825).setBiomeName("Thinned Timber").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.3F, 0.4F));
Biomes.tropicalRainforest = Optional.of((new BiomeGenTropicalRainforest(BOPConfiguration.IDs.tropicalRainforestID)).setColor(9286496).setBiomeName("Tropical Rainforest").setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.3F, 0.7F));
Biomes.tropics = Optional.of((new BiomeGenTropics(BOPConfiguration.IDs.tropicsID)).setColor(9286496).setBiomeName("Tropics").setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.1F, 1.5F));
Biomes.tundra = Optional.of((new BiomeGenTundra(BOPConfiguration.IDs.tundraID)).setColor(14090235).setBiomeName("Tundra").setTemperatureRainfall(0.2F, 0.8F).setMinMaxHeight(0.2F, 0.4F));
Biomes.volcano = Optional.of((new BiomeGenVolcano(BOPConfiguration.IDs.volcanoID)).setColor(9286496).setBiomeName("Volcano").setDisableRain().setMinMaxHeight(0.6F, 0.9F).setTemperatureRainfall(2.0F, 0.0F));
Biomes.wasteland = Optional.of((new BiomeGenWasteland(BOPConfiguration.IDs.wastelandID)).setColor(16421912).setBiomeName("Wasteland").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.3F, 0.4F));
Biomes.wetland = Optional.of((new BiomeGenWetland(BOPConfiguration.IDs.wetlandID)).setColor(522674).setBiomeName("Wetland").func_76733_a(9154376).setMinMaxHeight(0.3F, 0.5F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.woodland = Optional.of((new BiomeGenWoodland(BOPConfiguration.IDs.woodlandID)).setColor(353825).setBiomeName("Woodland").func_76733_a(5159473).setTemperatureRainfall(1.7F, 0.2F).setMinMaxHeight(0.3F, 0.4F));
Biomes.plainsNew = Optional.of((new BiomeGenPlainsNew(BOPConfiguration.IDs.plainsNewID)).setColor(9286496).setBiomeName("Plains").setTemperatureRainfall(0.8F, 0.4F));
Biomes.desertNew = Optional.of((new BiomeGenDesertNew(BOPConfiguration.IDs.desertNewID)).setColor(16421912).setBiomeName("Desert").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.2F, 0.3F));
Biomes.extremeHillsNew = Optional.of((new BiomeGenHillsNew(BOPConfiguration.IDs.extremeHillsNewID)).setColor(6316128).setBiomeName("Extreme Hills").setMinMaxHeight(1.0F, 2.0F).setTemperatureRainfall(0.2F, 0.3F));
Biomes.forestNew = Optional.of((new BiomeGenForestNew(BOPConfiguration.IDs.forestNewID)).setColor(353825).setBiomeName("Forest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F));
Biomes.taigaNew = Optional.of((new BiomeGenTaigaNew(BOPConfiguration.IDs.taigaNewID)).setColor(747097).setBiomeName("Taiga").func_76733_a(5159473).setEnableSnow().setTemperatureRainfall(0.05F, 0.8F).setMinMaxHeight(0.3F, 0.5F));
Biomes.swamplandNew = Optional.of((new BiomeGenSwampNew(BOPConfiguration.IDs.swamplandNewID)).setColor(522674).setBiomeName("Swampland").func_76733_a(9154376).setMinMaxHeight(0.1F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.jungleNew = Optional.of((new BiomeGenJungleNew(BOPConfiguration.IDs.jungleNewID)).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.4F, 0.5F));
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addToBiomeDictionary()
{
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.alps.get(), Type.FROZEN, Type.MOUNTAIN);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.alpsBase.get(), Type.FROZEN, Type.MOUNTAIN, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.alpsForest.get(), Type.FROZEN, Type.MOUNTAIN);
BiomeDictionary.registerBiomeType(Biomes.arctic.get(), Type.FROZEN, Type.WASTELAND);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.badlands.get(), Type.DESERT, Type.WASTELAND);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.bambooForest.get(), Type.JUNGLE, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.bayou.get(), Type.SWAMP, Type.WATER);
2013-05-31 10:34:02 +00:00
2013-05-24 15:45:47 +00:00
BiomeDictionary.registerBiomeType(Biomes.beachGravel.get(), Type.BEACH);
BiomeDictionary.registerBiomeType(Biomes.beachOvergrown.get(), Type.BEACH, Type.FOREST);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.birchForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.bog.get(), Type.SWAMP, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.borealForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.brushland.get(), Type.DESERT, Type.FOREST, Type.PLAINS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.canyon.get(), Type.DESERT, Type.MOUNTAIN, Type.HILLS);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.canyonRavine.get(), Type.DESERT, Type.HILLS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.chaparral.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.cherryBlossomGrove.get(), Type.MAGICAL, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.coniferousForest.get(), Type.FOREST, Type.HILLS);
BiomeDictionary.registerBiomeType(Biomes.coniferousForestSnow.get(), Type.FROZEN, Type.FOREST, Type.HILLS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.crag.get(), Type.WASTELAND, Type.MOUNTAIN);
BiomeDictionary.registerBiomeType(Biomes.deadForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.deadForestSnow.get(), Type.FOREST, Type.FROZEN);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.deadlands.get(), Type.WASTELAND);
BiomeDictionary.registerBiomeType(Biomes.deadSwamp.get(), Type.SWAMP);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.deciduousForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.dunes.get(), Type.BEACH, Type.DESERT, Type.HILLS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.fen.get(), Type.FOREST, Type.SWAMP);
BiomeDictionary.registerBiomeType(Biomes.field.get(), Type.PLAINS);
2013-07-30 21:39:46 +00:00
BiomeDictionary.registerBiomeType(Biomes.fieldForest.get(), Type.PLAINS, Type.FOREST);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.frostForest.get(), Type.FROZEN, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.fungiForest.get(), Type.MAGICAL, Type.MUSHROOM, Type.FOREST, Type.SWAMP);
BiomeDictionary.registerBiomeType(Biomes.garden.get(), Type.MAGICAL, Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.glacier.get(), Type.FROZEN, Type.HILLS);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.grassland.get(), Type.PLAINS, Type.SWAMP, Type.HILLS);
BiomeDictionary.registerBiomeType(Biomes.grove.get(), Type.FOREST, Type.PLAINS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.heathland.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.highland.get(), Type.HILLS, Type.MOUNTAIN);
BiomeDictionary.registerBiomeType(Biomes.hotSprings.get(), Type.HILLS, Type.FOREST, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.icyHills.get(), Type.FROZEN, Type.HILLS);
BiomeDictionary.registerBiomeType(Biomes.jadeCliffs.get(), Type.FOREST, Type.MOUNTAIN);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.lushDesert.get(), Type.DESERT, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.lushSwamp.get(), Type.SWAMP, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.mangrove.get(), Type.WATER, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.mapleWoods.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.marsh.get(), Type.SWAMP, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.meadow.get(), Type.FOREST, Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.meadowForest.get(), Type.FOREST, Type.PLAINS);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.mesa.get(), Type.DESERT, Type.WASTELAND, Type.MOUNTAIN);
BiomeDictionary.registerBiomeType(Biomes.moor.get(), Type.HILLS, Type.SWAMP);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.mountain.get(), Type.MOUNTAIN, Type.HILLS);
BiomeDictionary.registerBiomeType(Biomes.mysticGrove.get(), Type.MAGICAL, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.netherBase.get(), Type.NETHER);
BiomeDictionary.registerBiomeType(Biomes.netherGarden.get(), Type.NETHER, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.netherDesert.get(), Type.NETHER, Type.DESERT);
BiomeDictionary.registerBiomeType(Biomes.netherLava.get(), Type.NETHER);
BiomeDictionary.registerBiomeType(Biomes.netherBone.get(), Type.NETHER, Type.WASTELAND);
2013-05-31 10:34:02 +00:00
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.oasis.get(), Type.DESERT, Type.JUNGLE);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.oceanCoral.get(), Type.WATER);
BiomeDictionary.registerBiomeType(Biomes.oceanKelp.get(), Type.WATER, Type.FOREST);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.ominousWoods.get(), Type.MAGICAL);
BiomeDictionary.registerBiomeType(Biomes.ominousWoodsThick.get(), Type.MAGICAL);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.orchard.get(), Type.FOREST, Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.outback.get(), Type.DESERT, Type.PLAINS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.pasture.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.pastureThin.get(), Type.PLAINS);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.pastureMeadow.get(), Type.PLAINS, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.polar.get(), Type.FROZEN, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.prairie.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.promisedLandForest.get(), Type.FOREST, Type.MAGICAL);
2013-05-09 07:00:09 +00:00
BiomeDictionary.registerBiomeType(Biomes.promisedLandPlains.get(), Type.PLAINS, Type.MAGICAL);
BiomeDictionary.registerBiomeType(Biomes.promisedLandSwamp.get(), Type.SWAMP, Type.MAGICAL);
2013-05-31 10:34:02 +00:00
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.quagmire.get(), Type.WASTELAND, Type.SWAMP);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.rainforest.get(), Type.JUNGLE, Type.HILLS, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.redwoodForest.get(), Type.FOREST);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.sacredSprings.get(), Type.MOUNTAIN, Type.FOREST, Type.MAGICAL);
2013-07-31 20:05:09 +00:00
BiomeDictionary.registerBiomeType(Biomes.savanna.get(), Type.DESERT, Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.savannaPlateau.get(), Type.DESERT, Type.PLAINS, Type.HILLS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.scrubland.get(), Type.DESERT, Type.PLAINS);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.seasonalForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.seasonalSpruceForest.get(), Type.FOREST);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.shield.get(), Type.FOREST, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.shrubland.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.shrublandForest.get(), Type.PLAINS);
2013-08-08 22:54:45 +00:00
BiomeDictionary.registerBiomeType(Biomes.silkglades.get(), Type.SWAMP, Type.WASTELAND);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.sludgepit.get(), Type.SWAMP, Type.FOREST, Type.WASTELAND);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.spruceWoods.get(), Type.FOREST);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.steppe.get(), Type.PLAINS, Type.DESERT);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.temperateRainforest.get(), Type.FOREST, Type.HILLS);
BiomeDictionary.registerBiomeType(Biomes.thicket.get(), Type.PLAINS, Type.FOREST);
2013-05-24 21:41:13 +00:00
BiomeDictionary.registerBiomeType(Biomes.timber.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.timberThin.get(), Type.FOREST);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.tropicalRainforest.get(), Type.JUNGLE);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.tropics.get(), Type.JUNGLE, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.tundra.get(), Type.FROZEN, Type.WASTELAND);
BiomeDictionary.registerBiomeType(Biomes.volcano.get(), Type.WASTELAND, Type.MOUNTAIN);
BiomeDictionary.registerBiomeType(Biomes.wasteland.get(), Type.WASTELAND);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.wetland.get(), Type.SWAMP, Type.FOREST);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.woodland.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.plainsNew.get(), Type.PLAINS);
BiomeDictionary.registerBiomeType(Biomes.desertNew.get(), Type.DESERT);
BiomeDictionary.registerBiomeType(Biomes.forestNew.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.extremeHillsNew.get(), Type.HILLS, Type.MOUNTAIN);
2013-08-09 19:34:00 +00:00
BiomeDictionary.registerBiomeType(Biomes.taigaNew.get(), Type.FROZEN, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.swamplandNew.get(), Type.SWAMP, Type.WATER);
2013-05-31 10:34:02 +00:00
BiomeDictionary.registerBiomeType(Biomes.jungleNew.get(), Type.JUNGLE);
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addSpawnBiomes()
{
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.alps);
addSpawnBiome(Biomes.arctic);
addSpawnBiome(Biomes.badlands);
addSpawnBiome(Biomes.bambooForest);
addSpawnBiome(Biomes.bayou);
addSpawnBiome(Biomes.birchForest);
addSpawnBiome(Biomes.bog);
addSpawnBiome(Biomes.borealForest);
addSpawnBiome(Biomes.brushland);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.canyon);
addSpawnBiome(Biomes.chaparral);
addSpawnBiome(Biomes.cherryBlossomGrove);
addSpawnBiome(Biomes.coniferousForest);
addSpawnBiome(Biomes.coniferousForestSnow);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.deadForest);
addSpawnBiome(Biomes.deadForestSnow);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.deadSwamp);
addSpawnBiome(Biomes.deciduousForest);
addSpawnBiome(Biomes.dunes);
addSpawnBiome(Biomes.fen);
addSpawnBiome(Biomes.field);
addSpawnBiome(Biomes.frostForest);
addSpawnBiome(Biomes.glacier);
addSpawnBiome(Biomes.grassland);
addSpawnBiome(Biomes.grove);
addSpawnBiome(Biomes.heathland);
addSpawnBiome(Biomes.highland);
addSpawnBiome(Biomes.jadeCliffs);
addSpawnBiome(Biomes.lushDesert);
addSpawnBiome(Biomes.lushSwamp);
addSpawnBiome(Biomes.mangrove);
addSpawnBiome(Biomes.mapleWoods);
addSpawnBiome(Biomes.marsh);
addSpawnBiome(Biomes.meadow);
addSpawnBiome(Biomes.mesa);
addSpawnBiome(Biomes.moor);
addSpawnBiome(Biomes.mountain);
addSpawnBiome(Biomes.oasis);
addSpawnBiome(Biomes.outback);
addSpawnBiome(Biomes.pasture);
addSpawnBiome(Biomes.polar);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.prairie);
addSpawnBiome(Biomes.quagmire);
addSpawnBiome(Biomes.rainforest);
addSpawnBiome(Biomes.redwoodForest);
addSpawnBiome(Biomes.savanna);
addSpawnBiome(Biomes.scrubland);
addSpawnBiome(Biomes.seasonalForest);
addSpawnBiome(Biomes.shield);
addSpawnBiome(Biomes.shrubland);
addSpawnBiome(Biomes.sludgepit);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.spruceWoods);
addSpawnBiome(Biomes.temperateRainforest);
addSpawnBiome(Biomes.thicket);
2013-05-24 21:41:13 +00:00
addSpawnBiome(Biomes.timber);
2013-05-31 10:34:02 +00:00
addSpawnBiome(Biomes.tropicalRainforest);
addSpawnBiome(Biomes.tropics);
addSpawnBiome(Biomes.tundra);
addSpawnBiome(Biomes.volcano);
addSpawnBiome(Biomes.wetland);
addSpawnBiome(Biomes.woodland);
addSpawnBiome(Biomes.plainsNew);
addSpawnBiome(Biomes.desertNew);
addSpawnBiome(Biomes.forestNew);
addSpawnBiome(Biomes.extremeHillsNew);
addSpawnBiome(Biomes.taigaNew);
addSpawnBiome(Biomes.swamplandNew);
addSpawnBiome(Biomes.jungleNew);
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addVillageBiomes()
{
2013-08-03 00:07:43 +00:00
addVillageBiome(Biomes.alps, BOPConfiguration.TerrainGen.alpsVillage);
addVillageBiome(Biomes.arctic, BOPConfiguration.TerrainGen.arcticVillage);
addVillageBiome(Biomes.badlands, BOPConfiguration.TerrainGen.badlandsVillage);
addVillageBiome(Biomes.bambooForest, BOPConfiguration.TerrainGen.bambooForestVillage);
addVillageBiome(Biomes.bayou, BOPConfiguration.TerrainGen.bayouVillage);
addVillageBiome(Biomes.birchForest, BOPConfiguration.TerrainGen.birchForestVillage);
addVillageBiome(Biomes.bog, BOPConfiguration.TerrainGen.bogVillage);
addVillageBiome(Biomes.borealForest, BOPConfiguration.TerrainGen.borealForestVillage);
addVillageBiome(Biomes.brushland, BOPConfiguration.TerrainGen.brushlandVillage);
addVillageBiome(Biomes.canyon, BOPConfiguration.TerrainGen.canyonVillage);
addVillageBiome(Biomes.chaparral, BOPConfiguration.TerrainGen.chaparralVillage);
addVillageBiome(Biomes.cherryBlossomGrove, BOPConfiguration.TerrainGen.cherryBlossomGroveVillage);
addVillageBiome(Biomes.coniferousForest, BOPConfiguration.TerrainGen.coniferousForestVillage);
addVillageBiome(Biomes.coniferousForestSnow, BOPConfiguration.TerrainGen.coniferousForestSnowVillage);
addVillageBiome(Biomes.deadForest, BOPConfiguration.TerrainGen.deadForestVillage);
addVillageBiome(Biomes.deadForestSnow, BOPConfiguration.TerrainGen.deadForestSnowVillage);
addVillageBiome(Biomes.deadSwamp, BOPConfiguration.TerrainGen.deadSwampVillage);
addVillageBiome(Biomes.deciduousForest, BOPConfiguration.TerrainGen.deciduousForestVillage);
addVillageBiome(Biomes.dunes, BOPConfiguration.TerrainGen.dunesVillage);
addVillageBiome(Biomes.fen, BOPConfiguration.TerrainGen.fenVillage);
addVillageBiome(Biomes.field, BOPConfiguration.TerrainGen.fieldVillage);
addVillageBiome(Biomes.frostForest, BOPConfiguration.TerrainGen.frostForestVillage);
addVillageBiome(Biomes.glacier, BOPConfiguration.TerrainGen.glacierVillage);
addVillageBiome(Biomes.grassland, BOPConfiguration.TerrainGen.grasslandVillage);
addVillageBiome(Biomes.grove, BOPConfiguration.TerrainGen.groveVillage);
addVillageBiome(Biomes.heathland, BOPConfiguration.TerrainGen.heathlandVillage);
addVillageBiome(Biomes.highland, BOPConfiguration.TerrainGen.highlandVillage);
addVillageBiome(Biomes.hotSprings, BOPConfiguration.TerrainGen.hotSpringsVillage);
addVillageBiome(Biomes.jadeCliffs, BOPConfiguration.TerrainGen.jadeCliffsVillage);
addVillageBiome(Biomes.lushDesert, BOPConfiguration.TerrainGen.lushDesertVillage);
addVillageBiome(Biomes.lushSwamp, BOPConfiguration.TerrainGen.lushSwampVillage);
addVillageBiome(Biomes.mangrove, BOPConfiguration.TerrainGen.mangroveVillage);
addVillageBiome(Biomes.mapleWoods, BOPConfiguration.TerrainGen.mapleWoodsVillage);
addVillageBiome(Biomes.marsh, BOPConfiguration.TerrainGen.marshVillage);
addVillageBiome(Biomes.meadow, BOPConfiguration.TerrainGen.meadowVillage);
addVillageBiome(Biomes.mesa, BOPConfiguration.TerrainGen.mesaVillage);
addVillageBiome(Biomes.moor, BOPConfiguration.TerrainGen.moorVillage);
addVillageBiome(Biomes.mountain, BOPConfiguration.TerrainGen.mountainVillage);
addVillageBiome(Biomes.oasis, BOPConfiguration.TerrainGen.oasisVillage);
addVillageBiome(Biomes.orchard, BOPConfiguration.TerrainGen.orchardVillage);
addVillageBiome(Biomes.outback, BOPConfiguration.TerrainGen.outbackVillage);
addVillageBiome(Biomes.pasture, BOPConfiguration.TerrainGen.pastureVillage);
addVillageBiome(Biomes.polar, BOPConfiguration.TerrainGen.polarVillage);
addVillageBiome(Biomes.prairie, BOPConfiguration.TerrainGen.prairieVillage);
addVillageBiome(Biomes.quagmire, BOPConfiguration.TerrainGen.quagmireVillage);
addVillageBiome(Biomes.rainforest, BOPConfiguration.TerrainGen.rainforestVillage);
addVillageBiome(Biomes.redwoodForest, BOPConfiguration.TerrainGen.redwoodForestVillage);
addVillageBiome(Biomes.savanna, BOPConfiguration.TerrainGen.savannaVillage);
addVillageBiome(Biomes.scrubland, BOPConfiguration.TerrainGen.scrublandVillage);
addVillageBiome(Biomes.seasonalForest, BOPConfiguration.TerrainGen.seasonalForestVillage);
addVillageBiome(Biomes.shield, BOPConfiguration.TerrainGen.shieldVillage);
addVillageBiome(Biomes.shrubland, BOPConfiguration.TerrainGen.shrublandVillage);
addVillageBiome(Biomes.sludgepit, BOPConfiguration.TerrainGen.sludgepitVillage);
addVillageBiome(Biomes.spruceWoods, BOPConfiguration.TerrainGen.spruceWoodsVillage);
addVillageBiome(Biomes.temperateRainforest, BOPConfiguration.TerrainGen.temperateRainforestVillage);
addVillageBiome(Biomes.thicket, BOPConfiguration.TerrainGen.thicketVillage);
addVillageBiome(Biomes.timber, BOPConfiguration.TerrainGen.timberVillage);
addVillageBiome(Biomes.tropicalRainforest, BOPConfiguration.TerrainGen.tropicalRainforestVillage);
addVillageBiome(Biomes.tropics, BOPConfiguration.TerrainGen.tropicsVillage);
addVillageBiome(Biomes.tundra, BOPConfiguration.TerrainGen.tundraVillage);
addVillageBiome(Biomes.volcano, BOPConfiguration.TerrainGen.volcanoVillage);
addVillageBiome(Biomes.wetland, BOPConfiguration.TerrainGen.wetlandVillage);
addVillageBiome(Biomes.woodland, BOPConfiguration.TerrainGen.woodlandVillage);
addVillageBiome(Biomes.plainsNew, BOPConfiguration.TerrainGen.plainsVillage);
addVillageBiome(Biomes.desertNew, BOPConfiguration.TerrainGen.desertVillage);
addVillageBiome(Biomes.forestNew, BOPConfiguration.TerrainGen.forestVillage);
addVillageBiome(Biomes.extremeHillsNew, BOPConfiguration.TerrainGen.extremeHillsVillage);
addVillageBiome(Biomes.taigaNew, BOPConfiguration.TerrainGen.taigaVillage);
addVillageBiome(Biomes.swamplandNew, BOPConfiguration.TerrainGen.swamplandVillage);
addVillageBiome(Biomes.jungleNew, BOPConfiguration.TerrainGen.jungleVillage);
2013-05-31 10:34:02 +00:00
}
2013-05-03 13:00:44 +00:00
private static void addStrongholdBiomes()
{
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.alps);
addStrongholdBiome(Biomes.arctic);
addStrongholdBiome(Biomes.badlands);
addStrongholdBiome(Biomes.bambooForest);
addStrongholdBiome(Biomes.bayou);
addStrongholdBiome(Biomes.birchForest);
addStrongholdBiome(Biomes.bog);
addStrongholdBiome(Biomes.borealForest);
addStrongholdBiome(Biomes.brushland);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.canyon);
addStrongholdBiome(Biomes.chaparral);
addStrongholdBiome(Biomes.cherryBlossomGrove);
addStrongholdBiome(Biomes.coniferousForest);
addStrongholdBiome(Biomes.coniferousForestSnow);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.crag);
addStrongholdBiome(Biomes.deadForest);
addStrongholdBiome(Biomes.deadForestSnow);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.deadSwamp);
addStrongholdBiome(Biomes.deadlands);
addStrongholdBiome(Biomes.deciduousForest);
addStrongholdBiome(Biomes.dunes);
addStrongholdBiome(Biomes.fen);
addStrongholdBiome(Biomes.field);
addStrongholdBiome(Biomes.frostForest);
addStrongholdBiome(Biomes.fungiForest);
addStrongholdBiome(Biomes.garden);
addStrongholdBiome(Biomes.glacier);
addStrongholdBiome(Biomes.grassland);
addStrongholdBiome(Biomes.grove);
addStrongholdBiome(Biomes.heathland);
addStrongholdBiome(Biomes.highland);
addStrongholdBiome(Biomes.hotSprings);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.icyHills);
addStrongholdBiome(Biomes.jadeCliffs);
addStrongholdBiome(Biomes.lushDesert);
addStrongholdBiome(Biomes.lushSwamp);
addStrongholdBiome(Biomes.mangrove);
addStrongholdBiome(Biomes.mapleWoods);
addStrongholdBiome(Biomes.marsh);
addStrongholdBiome(Biomes.meadow);
addStrongholdBiome(Biomes.mesa);
addStrongholdBiome(Biomes.moor);
addStrongholdBiome(Biomes.mountain);
addStrongholdBiome(Biomes.mysticGrove);
addStrongholdBiome(Biomes.oasis);
addStrongholdBiome(Biomes.ominousWoods);
addStrongholdBiome(Biomes.orchard);
addStrongholdBiome(Biomes.outback);
addStrongholdBiome(Biomes.pasture);
addStrongholdBiome(Biomes.polar);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.prairie);
addStrongholdBiome(Biomes.quagmire);
addStrongholdBiome(Biomes.rainforest);
addStrongholdBiome(Biomes.redwoodForest);
addStrongholdBiome(Biomes.sacredSprings);
addStrongholdBiome(Biomes.savanna);
addStrongholdBiome(Biomes.scrubland);
addStrongholdBiome(Biomes.seasonalForest);
addStrongholdBiome(Biomes.shield);
addStrongholdBiome(Biomes.shrubland);
2013-08-08 22:54:45 +00:00
addStrongholdBiome(Biomes.silkglades);
addStrongholdBiome(Biomes.sludgepit);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.spruceWoods);
addStrongholdBiome(Biomes.steppe);
addStrongholdBiome(Biomes.temperateRainforest);
addStrongholdBiome(Biomes.thicket);
2013-05-24 21:41:13 +00:00
addStrongholdBiome(Biomes.timber);
2013-05-31 10:34:02 +00:00
addStrongholdBiome(Biomes.tropicalRainforest);
addStrongholdBiome(Biomes.tropics);
addStrongholdBiome(Biomes.tundra);
addStrongholdBiome(Biomes.volcano);
addStrongholdBiome(Biomes.wasteland);
addStrongholdBiome(Biomes.wetland);
addStrongholdBiome(Biomes.woodland);
addStrongholdBiome(Biomes.plainsNew);
addStrongholdBiome(Biomes.desertNew);
addStrongholdBiome(Biomes.forestNew);
addStrongholdBiome(Biomes.extremeHillsNew);
addStrongholdBiome(Biomes.taigaNew);
addStrongholdBiome(Biomes.swamplandNew);
addStrongholdBiome(Biomes.jungleNew);
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void registerBiomes()
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.addToDefault)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.alpsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.alps);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.arcticGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.arctic);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.badlandsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.badlands);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bambooForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.bambooForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bayouGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.bayou);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.birchForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.birchForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bogGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.bog);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.borealForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.borealForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.brushlandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.brushland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.canyonGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.canyon);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.chaparralGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.chaparral);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.cherryBlossomGroveGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.cherryBlossomGrove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.coniferousForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.coniferousForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.coniferousForestSnowGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.coniferousForestSnow);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.cragGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.crag);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.deadForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadForestSnowGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.deadForestSnow);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadSwampGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.deadSwamp);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadlandsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.deadlands);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deciduousForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.deciduousForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.dunesGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.dunes);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fenGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.fen);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fieldGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.field);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.frostForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.frostForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fungiForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.fungiForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.gardenGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.garden);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.glacierGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.glacier);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.grasslandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.grassland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.groveGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.grove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.heathlandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.heathland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.highlandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.highland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.hotSpringsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.hotSprings);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.icyHillsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.icyHills);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.jadeCliffsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.jadeCliffs);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.lushDesertGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.lushDesert);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.lushSwampGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.lushSwamp);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mangroveGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.mangrove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mapleWoodsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.mapleWoods);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.marshGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.marsh);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.meadowGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.meadow);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mesaGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.mesa);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.moorGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.moor);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mountainGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.mountain);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
// if (BOPConfiguration.BiomeGen.mushroomIslandGen)
2013-05-31 10:34:02 +00:00
// GameRegistry.addBiome(BiomeGenBase.mushroomIsland);
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mysticGroveGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.mysticGrove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.oasisGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.oasis);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.ominousWoodsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.ominousWoods);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.orchardGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.orchard);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.originValleyGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.originValley);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.outbackGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.outback);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.pastureGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.pasture);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.polarGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.polar);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.prairieGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.prairie);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.quagmireGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.quagmire);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.rainforestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.rainforest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.redwoodForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.redwoodForest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.sacredSpringsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.sacredSprings);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.savannaGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.savanna);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.scrublandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.scrubland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.seasonalForestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.seasonalForest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.shieldGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.shield);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.shrublandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.shrubland);
}
2013-08-08 22:54:45 +00:00
if (BOPConfiguration.BiomeGen.silkgladesGen) {
registerBiome(Biomes.silkglades);
}
2013-05-31 10:34:02 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.sludgepitGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.sludgepit);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.spruceWoodsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.spruceWoods);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.steppeGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.steppe);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.temperateRainforestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.temperateRainforest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.thicketGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.thicket);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.timberGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.timber);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tropicalRainforestGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.tropicalRainforest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tropicsGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.tropics);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tundraGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.tundra);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.volcanoGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.volcano);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.wastelandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.wasteland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.wetlandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.wetland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.woodlandGen) {
2013-05-31 10:34:02 +00:00
registerBiome(Biomes.woodland);
}
// Vanilla biomes generation
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.plainsGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.plainsNew);
GameRegistry.removeBiome(BiomeGenBase.plains);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.plains);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.desertGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.desertNew);
GameRegistry.removeBiome(BiomeGenBase.desert);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.desert);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.extremeHillsGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.extremeHillsNew);
GameRegistry.removeBiome(BiomeGenBase.extremeHills);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.extremeHills);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.forestGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.forestNew);
GameRegistry.removeBiome(BiomeGenBase.forest);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.forest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.taigaGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.taigaNew);
GameRegistry.removeBiome(BiomeGenBase.taiga);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.taiga);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.swamplandGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.swamplandNew);
GameRegistry.removeBiome(BiomeGenBase.swampland);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.swampland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.jungleGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
registerBiome(Biomes.jungleNew);
GameRegistry.removeBiome(BiomeGenBase.jungle);
}
} else {
GameRegistry.removeBiome(BiomeGenBase.jungle);
}
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addBiomes()
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.alpsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.alps);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.arcticGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.arctic);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.badlandsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.badlands);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bambooForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.bambooForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bayouGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.bayou);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.birchForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.birchForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.bogGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.bog);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.borealForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.borealForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.brushlandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.brushland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.canyonGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.canyon);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.chaparralGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.chaparral);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.cherryBlossomGroveGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.cherryBlossomGrove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.coniferousForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.coniferousForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.coniferousForestSnowGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.coniferousForestSnow);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.cragGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.crag);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.deadForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadForestSnowGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.deadForestSnow);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadSwampGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.deadSwamp);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deadlandsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.deadlands);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.deciduousForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.deciduousForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.dunesGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.dunes);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fenGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.fen);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fieldGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.field);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.frostForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.frostForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.fungiForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.fungiForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.gardenGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.garden);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.glacierGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.glacier);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.grasslandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.grassland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.groveGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.grove);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.heathlandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.heathland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.highlandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.highland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.hotSpringsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.hotSprings);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.icyHillsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.icyHills);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.jadeCliffsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.jadeCliffs);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.lushDesertGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.lushDesert);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.lushSwampGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.lushSwamp);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mangroveGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.mangrove);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mapleWoodsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.mapleWoods);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.marshGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.marsh);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.meadowGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.meadow);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mesaGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.mesa);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.moorGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.moor);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mountainGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.mountain);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.mysticGroveGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.mysticGrove);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.oasisGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.oasis);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.ominousWoodsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.ominousWoods);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.orchardGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.orchard);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.originValleyGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.originValley);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.outbackGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.outback);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.pastureGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.pasture);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.polarGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.polar);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.prairieGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.prairie);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.quagmireGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.quagmire);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.rainforestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.rainforest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.redwoodForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.redwoodForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.sacredSpringsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.sacredSprings);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.savannaGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.savanna);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.scrublandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.scrubland);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.seasonalForestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.seasonalForest);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.shieldGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.shield);
}
2013-05-03 13:00:44 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.shrublandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.shrubland);
}
2013-08-08 22:54:45 +00:00
if (BOPConfiguration.BiomeGen.silkgladesGen) {
addBiomeToWorldTypes(getWorldTypes(), Biomes.silkglades);
}
2013-05-31 10:34:02 +00:00
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.sludgepitGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.sludgepit);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.spruceWoodsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.spruceWoods);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.steppeGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.steppe);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.temperateRainforestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.temperateRainforest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.thicketGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.thicket);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.timberGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.timber);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tropicalRainforestGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.tropicalRainforest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tropicsGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.tropics);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.tundraGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.tundra);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.volcanoGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.volcano);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.wastelandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.wasteland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.wetlandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.wetland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.woodlandGen) {
2013-05-31 10:34:02 +00:00
addBiomeToWorldTypes(getWorldTypes(), Biomes.woodland);
}
// Vanilla biomes generation
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.plainsGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.plainsNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.plains);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.plains);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.desertGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.desertNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.desert);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.desert);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.extremeHillsGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.extremeHillsNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.extremeHills);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.extremeHills);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.forestGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.forestNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.forest);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.forest);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.taigaGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.taigaNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.taiga);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.taiga);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.swamplandGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.swamplandNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.swampland);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.swampland);
}
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.BiomeGen.jungleGen)
2013-05-31 10:34:02 +00:00
{
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.vanillaEnhanced)
2013-05-31 10:34:02 +00:00
{
addBiomeToWorldTypes(getWorldTypes(), Biomes.jungleNew);
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.jungle);
}
} else {
removeBiomeFromWorldTypes(getWorldTypes(), BiomeGenBase.jungle);
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
public static Set<WorldType> getWorldTypes() {
2013-05-31 10:34:02 +00:00
if (worldTypes.isEmpty()) {
2013-08-03 00:07:43 +00:00
if (BOPConfiguration.TerrainGen.addToDefault)
2013-05-31 10:34:02 +00:00
{
worldTypes.add(WorldType.DEFAULT);
worldTypes.add(WorldType.LARGE_BIOMES);
}
worldTypes.add(WTBiomesOP);
}
return ImmutableSet.copyOf(worldTypes);
}
2013-05-03 13:00:44 +00:00
private static void addBiomeToWorldTypes(Collection<WorldType> worldTypes, Optional<? extends BiomeGenBase> biome)
{
2013-05-31 10:34:02 +00:00
for (final WorldType worldType : worldTypes)
if (biome.isPresent()) {
worldType.addNewBiome(biome.get());
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void removeBiomeFromWorldTypes(Collection<WorldType> worldTypes, BiomeGenBase biome)
2013-05-31 10:34:02 +00:00
{
for (final WorldType worldType : worldTypes) {
worldType.removeBiome(biome);
}
}
2013-05-03 13:00:44 +00:00
private static void addSpawnBiome(Optional<? extends BiomeGenBase> biome)
{
2013-05-31 10:34:02 +00:00
if (biome.isPresent()) {
2013-05-03 13:00:44 +00:00
BiomeManager.addSpawnBiome(biome.get());
2013-05-31 10:34:02 +00:00
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addVillageBiome(Optional<? extends BiomeGenBase> biome, boolean flag)
{
2013-05-31 10:34:02 +00:00
if (biome.isPresent() && flag) {
BiomeManager.addVillageBiome(biome.get(), true);
2013-05-31 10:34:02 +00:00
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void addStrongholdBiome(Optional<? extends BiomeGenBase> biome)
{
2013-05-31 10:34:02 +00:00
if (biome.isPresent()) {
2013-05-03 13:00:44 +00:00
BiomeManager.addStrongholdBiome(biome.get());
2013-05-31 10:34:02 +00:00
}
2013-05-03 13:00:44 +00:00
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
private static void registerBiome(Optional<? extends BiomeGenBase> biome)
{
2013-05-31 10:34:02 +00:00
if (biome.isPresent()) {
2013-05-03 13:00:44 +00:00
GameRegistry.addBiome(biome.get());
2013-05-31 10:34:02 +00:00
}
2013-05-03 13:00:44 +00:00
}
}