package biomesoplenty.biomes; import java.util.Random; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.gen.feature.WorldGenShrub; import net.minecraft.world.gen.feature.WorldGenerator; import biomesoplenty.worldgen.WorldGenJacarandaShrub; public class BiomeGenHeathland extends BiomeGenBase { private BiomeDecoratorBOP customBiomeDecorator; public BiomeGenHeathland(int par1) { super(par1); this.spawnableCreatureList.clear(); this.theBiomeDecorator = new BiomeDecoratorBOP(this); this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; this.customBiomeDecorator.treesPerChunk = 3; this.customBiomeDecorator.grassPerChunk = 10; this.customBiomeDecorator.purpleFlowersPerChunk = 30; this.customBiomeDecorator.deadBushPerChunk = 2; this.customBiomeDecorator.berryBushesPerChunk = 1; this.customBiomeDecorator.generatePumpkins = false; } /** * Gets a WorldGen appropriate for this biome. */ public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenJacarandaShrub(0, 0) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0, 0) : this.worldGeneratorTrees)); } /** * Provides the basic grass color based on the biome temperature and rainfall */ public int getBiomeGrassColor() { return 13550967; } /** * Provides the basic foliage color based on the biome temperature and rainfall */ public int getBiomeFoliageColor() { return 11454081; } }