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