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
|
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
|
|
|
|
public BiomeGenDesertNew(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
this.spawnableCreatureList.clear();
|
|
|
|
this.topBlock = (byte)Block.sand.blockID;
|
|
|
|
this.fillerBlock = (byte)Block.sand.blockID;
|
|
|
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
this.customBiomeDecorator.treesPerChunk = -999;
|
|
|
|
this.customBiomeDecorator.deadBushPerChunk = 2;
|
|
|
|
this.customBiomeDecorator.reedsPerChunk = 50;
|
|
|
|
this.customBiomeDecorator.cactiPerChunk = 10;
|
|
|
|
this.customBiomeDecorator.desertSproutsPerChunk = 1;
|
|
|
|
this.customBiomeDecorator.tinyCactiPerChunk = 5;
|
2013-05-29 00:19:44 +00:00
|
|
|
this.customBiomeDecorator.generateQuicksand = true;
|
2013-05-08 03:25:14 +00:00
|
|
|
this.customBiomeDecorator.aloePerChunk = 2;
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
|
|
|
{
|
|
|
|
super.decorate(par1World, par2Random, par3, par4);
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|