BiomesOPlenty/src/minecraft/biomesoplenty/biomes/BiomeGenBeachOvergrown.java

41 lines
1.2 KiB
Java
Raw Normal View History

2013-05-24 15:45:47 +00:00
package biomesoplenty.biomes;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
2013-05-24 15:45:47 +00:00
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;
import biomesoplenty.api.Blocks;
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;
2013-05-31 20:22:04 +00:00
theBiomeDecorator.treesPerChunk = 32;
theBiomeDecorator.deadBushPerChunk = 3;
2013-05-31 10:34:02 +00:00
customBiomeDecorator.duneGrassPerChunk = 25;
2013-05-31 20:22:04 +00:00
theBiomeDecorator.cactiPerChunk = 10;
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
}