32 lines
895 B
Java
32 lines
895 B
Java
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
|
|
{
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
public BiomeGenThicket(int par1)
|
|
{
|
|
super(par1);
|
|
theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
customBiomeDecorator.treesPerChunk = 17;
|
|
customBiomeDecorator.grassPerChunk = 1;
|
|
customBiomeDecorator.wheatGrassPerChunk = 0;
|
|
customBiomeDecorator.thornsPerChunk = 25;
|
|
}
|
|
|
|
/**
|
|
* Gets a WorldGen appropriate for this biome.
|
|
*/
|
|
@Override
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
{
|
|
return par1Random.nextInt(5) == 0 ? worldGeneratorTrees : new WorldGenShrub(0, 0);
|
|
}
|
|
}
|