package net.minecraftforge.event.terraingen;

import java.util.Random;

import cpw.mods.fml.common.eventhandler.Event.HasResult;

import net.minecraft.world.World;
import net.minecraftforge.event.world.WorldEvent;

/**
 * This event is fired when a sapling grows a tree.
 * 
 * You can set the result to DENY to prevent the default tree growth.
 */
@HasResult
public class SaplingGrowTreeEvent extends WorldEvent
{
	public final int x;
	public final int y;
	public final int z;
	public final Random rand;
	
	public SaplingGrowTreeEvent(World world, Random rand, int x, int y, int z)
	{
		super(world);
		this.rand = rand;
		this.x = x;
		this.y = y;
		this.z = z;
	}
}
