    001    package net.minecraft.src;
    002
    003    import java.util.Random;
    004
    005    public class BiomeGenHills extends BiomeGenBase
    006    {
    007        protected BiomeGenHills(int par1)
    008        {
    009            super(par1);
    010        }
    011
    012        public void decorate(World par1World, Random par2Random, int par3, int par4)
    013        {
    014            super.decorate(par1World, par2Random, par3, par4);
    015            int var5 = 3 + par2Random.nextInt(6);
    016
    017            for (int var6 = 0; var6 < var5; ++var6)
    018            {
    019                int var7 = par3 + par2Random.nextInt(16);
    020                int var8 = par2Random.nextInt(28) + 4;
    021                int var9 = par4 + par2Random.nextInt(16);
    022                int var10 = par1World.getBlockId(var7, var8, var9);
    023
    024                if (var10 == Block.stone.blockID)
    025                {
    026                    par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID);
    027                }
    028            }
    029        }
    030    }