    001    package net.minecraft.src;
    002
    003    import java.util.Random;
    004
    005    public class WorldGenVines extends WorldGenerator
    006    {
    007        public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
    008        {
    009            int var6 = par3;
    010
    011            for (int var7 = par5; par4 < 128; ++par4)
    012            {
    013                if (par1World.isAirBlock(par3, par4, par5))
    014                {
    015                    for (int var8 = 2; var8 <= 5; ++var8)
    016                    {
    017                        if (Block.vine.canPlaceBlockOnSide(par1World, par3, par4, par5, var8))
    018                        {
    019                            par1World.setBlockAndMetadata(par3, par4, par5, Block.vine.blockID, 1 << Direction.vineGrowth[Facing.faceToSide[var8]]);
    020                            break;
    021                        }
    022                    }
    023                }
    024                else
    025                {
    026                    par3 = var6 + par2Random.nextInt(4) - par2Random.nextInt(4);
    027                    par5 = var7 + par2Random.nextInt(4) - par2Random.nextInt(4);
    028                }
    029            }
    030
    031            return true;
    032        }
    033    }