2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenDesertWells;
|
|
|
|
|
|
|
|
public class BiomeGenDesertNew extends BiomeGenBase
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public BiomeGenDesertNew(int par1)
|
2013-05-31 10:34:02 +00:00
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
spawnableCreatureList.clear();
|
|
|
|
topBlock = (byte)Block.sand.blockID;
|
|
|
|
fillerBlock = (byte)Block.sand.blockID;
|
|
|
|
theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
customBiomeDecorator.treesPerChunk = -999;
|
|
|
|
customBiomeDecorator.deadBushPerChunk = 2;
|
|
|
|
customBiomeDecorator.reedsPerChunk = 50;
|
|
|
|
customBiomeDecorator.cactiPerChunk = 10;
|
|
|
|
customBiomeDecorator.desertSproutsPerChunk = 1;
|
|
|
|
customBiomeDecorator.tinyCactiPerChunk = 5;
|
|
|
|
customBiomeDecorator.generateQuicksand = true;
|
|
|
|
customBiomeDecorator.aloePerChunk = 2;
|
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
@Override
|
|
|
|
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
|
|
|
{
|
|
|
|
super.decorate(par1World, par2Random, par3, par4);
|
2013-05-03 13:00:44 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
if (par2Random.nextInt(1000) == 0)
|
|
|
|
{
|
|
|
|
int var5 = par3 + par2Random.nextInt(16) + 8;
|
|
|
|
int var6 = par4 + par2Random.nextInt(16) + 8;
|
|
|
|
WorldGenDesertWells var7 = new WorldGenDesertWells();
|
|
|
|
var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
|
|
|
|
}
|
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|