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; public class BiomeGenGrove extends BiomeGenBase { private BiomeDecoratorBOP customBiomeDecorator; public BiomeGenGrove(int par1) { super(par1); this.theBiomeDecorator = new BiomeDecoratorBOP(this); this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; this.customBiomeDecorator.treesPerChunk = 6; this.customBiomeDecorator.flowersPerChunk = 5; this.customBiomeDecorator.grassPerChunk = 10; this.customBiomeDecorator.sproutsPerChunk = 2; this.customBiomeDecorator.generatePumpkins = false; } /** * Gets a WorldGen appropriate for this biome. */ public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenShrub(2,2) : this.worldGeneratorBigTree); //return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2()); } /** * Provides the basic grass color based on the biome temperature and rainfall */ public int getBiomeGrassColor() { return 8298592; } /** * Provides the basic foliage color based on the biome temperature and rainfall */ public int getBiomeFoliageColor() { return 7445333; } }