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