BiomesOPlenty/common/biomesoplenty/biomes/beach/BiomeGenBeachOvergrown.java

41 lines
1.2 KiB
Java
Raw Normal View History

2013-09-14 10:16:39 +00:00
package biomesoplenty.biomes.beach;
2013-05-24 15:45:47 +00:00
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
2013-09-14 10:16:39 +00:00
import biomesoplenty.biomes.BiomeDecoratorBOP;
2013-05-31 20:22:04 +00:00
import biomesoplenty.worldgen.WorldGenChaparral2;
import biomesoplenty.worldgen.WorldGenChaparral3;
2013-05-24 15:45:47 +00:00
public class BiomeGenBeachOvergrown extends BiomeGenBase
{
private BiomeDecoratorBOP customBiomeDecorator;
2013-05-31 10:34:02 +00:00
public BiomeGenBeachOvergrown(int par1)
{
super(par1);
theBiomeDecorator = new BiomeDecoratorBOP(this);
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
spawnableCreatureList.clear();
topBlock = (byte)Block.sand.blockID;
fillerBlock = (byte)Block.sand.blockID;
customBiomeDecorator.treesPerChunk = 16;
customBiomeDecorator.deadBushPerChunk = 3;
2013-05-31 10:34:02 +00:00
customBiomeDecorator.duneGrassPerChunk = 25;
customBiomeDecorator.cactiPerChunk = 5;
2013-05-31 20:22:04 +00:00
customBiomeDecorator.outbackPerChunk = 7;
2013-09-24 00:20:50 +00:00
customBiomeDecorator.waterReedsPerChunk = 4;
2013-05-31 10:34:02 +00:00
}
/**
* Gets a WorldGen appropriate for this biome.
*/
2013-05-31 20:22:04 +00:00
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(3) == 0 ? new WorldGenChaparral2() : new WorldGenChaparral3();
}
2013-05-24 15:45:47 +00:00
}