BiomesOPlenty/common/biomesoplenty/biomes/BiomeGenThicket.java

34 lines
939 B
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
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 BiomeGenThicket extends BiomeGenBase
{
2013-05-31 10:34:02 +00:00
private BiomeDecoratorBOP customBiomeDecorator;
2013-05-03 13:00:44 +00:00
public BiomeGenThicket(int par1)
2013-05-31 10:34:02 +00:00
{
super(par1);
theBiomeDecorator = new BiomeDecoratorBOP(this);
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
customBiomeDecorator.treesPerChunk = 17;
customBiomeDecorator.grassPerChunk = 1;
2013-09-20 23:16:51 +00:00
customBiomeDecorator.wheatGrassPerChunk = 1;
2013-05-31 10:34:02 +00:00
customBiomeDecorator.thornsPerChunk = 25;
2013-09-21 18:08:17 +00:00
customBiomeDecorator.shrubsPerChunk = 15;
2013-05-31 10:34:02 +00:00
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(5) == 0 ? worldGeneratorTrees : new WorldGenShrub(0, 0);
}
2013-05-03 13:00:44 +00:00
}