Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void makeBestGuess(BiomeGenBase biome)
- {
- if(biome.theBiomeDecorator.treesPerChunk >= 3)
- {
- if(biome.isHighHumidity() && biome.temperature >= 0.9F)
- {
- BiomeDictionary.registerBiomeType(biome, JUNGLE);
- }
- else if(!biome.isHighHumidity())
- {
- BiomeDictionary.registerBiomeType(biome, FOREST);
- if (biome.temperature <= 0.2f) {
- BiomeDictionary.registerBiomeType(biome, CONIFEROUS);
- }
- }
- }
- else if(biome.heightVariation <= 0.3F && biome.heightVariation >= 0.0F)
- {
- if(!biome.isHighHumidity() || biome.rootHeight >= 0.0F)
- {
- BiomeDictionary.registerBiomeType(biome, PLAINS);
- }
- }
- // WET
- if(biome.rainfall > 0.85f)
- {
- BiomeDictionary.registerBiomeType(biome, WET);
- }
- // DRY
- if(biome.rainfall < 0.15f)
- {
- BiomeDictionary.registerBiomeType(biome, DRY);
- }
- // HOT
- if(biome.temperature > 0.85f)
- {
- BiomeDictionary.registerBiomeType(biome, HOT);
- }
- // COLD
- if(biome.temperature < 0.15f)
- {
- BiomeDictionary.registerBiomeType(biome, COLD);
- }
- // DENSE/SPARSE
- if(biome.theBiomeDecorator.treesPerChunk > 0 && biome.theBiomeDecorator.treesPerChunk < 3)
- {
- BiomeDictionary.registerBiomeType(biome, SPARSE);
- }
- else if(biome.theBiomeDecorator.treesPerChunk >= 10)
- {
- BiomeDictionary.registerBiomeType(biome, DENSE);
- }
- // SWAMP
- if(biome.isHighHumidity() && biome.rootHeight < 0.0F && (biome.heightVariation <= 0.3F && biome.heightVariation >= 0.0F))
- {
- BiomeDictionary.registerBiomeType(biome, SWAMP);
- }
- // WATER
- if(biome.rootHeight <= -0.5F)
- {
- BiomeDictionary.registerBiomeType(biome, WATER);
- }
- // HILLS
- if(biome.heightVariation >= 0.4F && biome.heightVariation < 1.5F)
- {
- BiomeDictionary.registerBiomeType(biome, HILLS);
- }
- // MOUNTAIN
- if(biome.heightVariation >= 1.5F)
- {
- BiomeDictionary.registerBiomeType(biome, MOUNTAIN);
- }
- // SNOWY
- if(biome.getEnableSnow())
- {
- BiomeDictionary.registerBiomeType(biome, SNOWY);
- }
- // SAVANNA
- if(biome.topBlock != Blocks.sand && biome.temperature >= 1.0f && biome.rainfall < 0.2f)
- {
- BiomeDictionary.registerBiomeType(biome, SAVANNA);
- }
- // SANDY / MESA / MUSHROOM
- if(biome.topBlock == Blocks.sand )
- {
- BiomeDictionary.registerBiomeType(biome, SANDY);
- }
- else if(biome.topBlock == Blocks.hardened_clay)
- {
- BiomeDictionary.registerBiomeType(biome, MESA);
- }
- else if(biome.topBlock == Blocks.mycelium)
- {
- BiomeDictionary.registerBiomeType(biome, MUSHROOM);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement