BiomesOPlenty/src/minecraft/biomesoplenty/biomes/BiomeGenAutumnHills.java

70 lines
2.0 KiB
Java
Raw Normal View History

2013-09-10 00:38:03 +00:00
package biomesoplenty.biomes;
2013-09-10 12:58:26 +00:00
import java.awt.Color;
2013-09-10 00:38:03 +00:00
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenTallGrass;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
2013-09-10 12:58:26 +00:00
import biomesoplenty.configuration.BOPConfiguration;
2013-09-10 00:38:03 +00:00
import biomesoplenty.worldgen.WorldGenDeadTree;
2013-09-10 12:58:26 +00:00
import biomesoplenty.worldgen.WorldGenDeadTree2;
import biomesoplenty.worldgen.WorldGenTaiga4;
2013-09-10 00:38:03 +00:00
2013-09-10 12:58:26 +00:00
public class BiomeGenAutumnHills extends BiomeGenBase
2013-09-10 00:38:03 +00:00
{
private BiomeDecoratorBOP customBiomeDecorator;
2013-09-10 12:58:26 +00:00
public BiomeGenAutumnHills(int par1)
2013-09-10 00:38:03 +00:00
{
super(par1);
theBiomeDecorator = new BiomeDecoratorBOP(this);
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
2013-09-10 12:58:26 +00:00
customBiomeDecorator.treesPerChunk = 6;
customBiomeDecorator.grassPerChunk = 13;
2013-09-10 00:38:03 +00:00
customBiomeDecorator.thornsPerChunk = 1;
2013-09-10 01:15:44 +00:00
customBiomeDecorator.purpleFlowersPerChunk = 6;
2013-09-10 00:38:03 +00:00
customBiomeDecorator.flowersPerChunk = -999;
customBiomeDecorator.reedsPerChunk = -999;
2013-09-10 12:58:26 +00:00
customBiomeDecorator.pumpkinsPerChunk = 2;
customBiomeDecorator.bushesPerChunk = 45;
customBiomeDecorator.berryBushesPerChunk = 5;
customBiomeDecorator.sproutsPerChunk = 2;
2013-09-10 00:38:03 +00:00
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
2013-09-10 12:58:26 +00:00
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
2013-09-10 00:38:03 +00:00
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
2013-09-10 12:58:26 +00:00
return par1Random.nextInt(9) == 0 ? new WorldGenDeadTree(false) : (par1Random.nextInt(6) == 0 ? new WorldGenTaiga4(false) : this.worldGeneratorTrees);
2013-09-10 00:38:03 +00:00
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
2013-09-10 01:15:44 +00:00
return 12233056;
2013-09-10 00:38:03 +00:00
}
@Override
public int getBiomeFoliageColor()
{
2013-09-10 01:15:44 +00:00
return 13024603;
2013-09-10 00:38:03 +00:00
}
}