001    package net.minecraftforge.event.terraingen;
002    
003    import java.util.Random;
004    
005    import net.minecraft.world.World;
006    import net.minecraftforge.event.Event.HasResult;
007    import net.minecraftforge.event.world.WorldEvent;
008    
009    /**
010     * This event is fired when a sapling grows a tree.
011     * 
012     * You can set the result to DENY to prevent the default tree growth.
013     */
014    @HasResult
015    public class SaplingGrowTreeEvent extends WorldEvent
016    {
017        public final int x;
018        public final int y;
019        public final int z;
020        public final Random rand;
021        
022        public SaplingGrowTreeEvent(World world, Random rand, int x, int y, int z)
023        {
024            super(world);
025            this.rand = rand;
026            this.x = x;
027            this.y = y;
028            this.z = z;
029        }
030    }