001    package net.minecraft.src;
002    
003    import java.util.Random;
004    
005    public class BiomeGenDesert extends BiomeGenBase
006    {
007        public BiomeGenDesert(int par1)
008        {
009            super(par1);
010            this.spawnableCreatureList.clear();
011            this.topBlock = (byte)Block.sand.blockID;
012            this.fillerBlock = (byte)Block.sand.blockID;
013            this.theBiomeDecorator.treesPerChunk = -999;
014            this.theBiomeDecorator.deadBushPerChunk = 2;
015            this.theBiomeDecorator.reedsPerChunk = 50;
016            this.theBiomeDecorator.cactiPerChunk = 10;
017        }
018    
019        public void decorate(World par1World, Random par2Random, int par3, int par4)
020        {
021            super.decorate(par1World, par2Random, par3, par4);
022    
023            if (par2Random.nextInt(1000) == 0)
024            {
025                int var5 = par3 + par2Random.nextInt(16) + 8;
026                int var6 = par4 + par2Random.nextInt(16) + 8;
027                WorldGenDesertWells var7 = new WorldGenDesertWells();
028                var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
029            }
030        }
031    }