package biomesoplenty.biomes; import java.util.Random; import biomesoplenty.api.Blocks; import biomesoplenty.configuration.BOPBlocks; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.gen.feature.WorldGenTallGrass; import net.minecraft.world.gen.feature.WorldGenerator; public class BiomeGenSteppe extends BiomeGenBase { private BiomeDecoratorBOP customBiomeDecorator; public BiomeGenSteppe(int par1) { super(par1); this.spawnableCreatureList.clear(); this.theBiomeDecorator = new BiomeDecoratorBOP(this); this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; this.customBiomeDecorator.treesPerChunk = -999; this.customBiomeDecorator.flowersPerChunk = -999; this.customBiomeDecorator.grassPerChunk = 15; this.customBiomeDecorator.deadBushPerChunk = 7; this.customBiomeDecorator.tinyCactiPerChunk = 1; this.customBiomeDecorator.quicksandPerChunk = 1; this.customBiomeDecorator.steppePerChunk = 6; this.customBiomeDecorator.yuccaPerChunk = 2; this.customBiomeDecorator.generatePumpkins = false; } /** * Gets a WorldGen appropriate for this biome. */ public WorldGenerator getRandomWorldGenForGrass(Random par1Random) { return (par1Random.nextInt(8) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))); } /** * Provides the basic grass color based on the biome temperature and rainfall */ public int getBiomeGrassColor() { return 13413215; } public int getBiomeFoliageColor() { return 13413215; } }