2013-05-24 15:45:47 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
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
|
|
|
|
{
|
2013-05-24 20:51:25 +00:00
|
|
|
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;
|
2013-06-07 16:45:13 +00:00
|
|
|
customBiomeDecorator.treesPerChunk = 16;
|
|
|
|
customBiomeDecorator.deadBushPerChunk = 3;
|
2013-05-31 10:34:02 +00:00
|
|
|
customBiomeDecorator.duneGrassPerChunk = 25;
|
2013-06-07 16:45:13 +00:00
|
|
|
customBiomeDecorator.cactiPerChunk = 5;
|
2013-05-31 20:22:04 +00:00
|
|
|
customBiomeDecorator.outbackPerChunk = 7;
|
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
|
|
|
}
|