33 lines
939 B
Java
33 lines
939 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 = 1;
|
|
customBiomeDecorator.thornsPerChunk = 25;
|
|
customBiomeDecorator.shrubsPerChunk = 15;
|
|
}
|
|
|
|
/**
|
|
* Gets a WorldGen appropriate for this biome.
|
|
*/
|
|
@Override
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
{
|
|
return par1Random.nextInt(5) == 0 ? worldGeneratorTrees : new WorldGenShrub(0, 0);
|
|
}
|
|
}
|