    001    package net.minecraft.world.biome;
    002
    003    import java.util.Random;
    004    import net.minecraft.block.Block;
    005    import net.minecraft.world.World;
    006    import net.minecraft.world.gen.feature.WorldGenMinable;
    007    import net.minecraft.world.gen.feature.WorldGenerator;
    008
    009    public class BiomeGenHills extends BiomeGenBase
    010    {
    011        private WorldGenerator theWorldGenerator;
    012
    013        protected BiomeGenHills(int par1)
    014        {
    015            super(par1);
    016            this.theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8);
    017        }
    018
    019        public void decorate(World par1World, Random par2Random, int par3, int par4)
    020        {
    021            super.decorate(par1World, par2Random, par3, par4);
    022            int var5 = 3 + par2Random.nextInt(6);
    023            int var6;
    024            int var7;
    025            int var8;
    026
    027            for (var6 = 0; var6 < var5; ++var6)
    028            {
    029                var7 = par3 + par2Random.nextInt(16);
    030                var8 = par2Random.nextInt(28) + 4;
    031                int var9 = par4 + par2Random.nextInt(16);
    032                int var10 = par1World.getBlockId(var7, var8, var9);
    033
    034                if (var10 == Block.stone.blockID)
    035                {
    036                    par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID);
    037                }
    038            }
    039
    040            for (var5 = 0; var5 < 7; ++var5)
    041            {
    042                var6 = par3 + par2Random.nextInt(16);
    043                var7 = par2Random.nextInt(64);
    044                var8 = par4 + par2Random.nextInt(16);
    045                this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
    046            }
    047        }
    048    }