001    package net.minecraftforge.event.entity.player;
002    
003    import net.minecraft.src.EntityPlayer;
004    import net.minecraft.src.World;
005    import net.minecraftforge.event.Cancelable;
006    
007    @Cancelable
008    public class BonemealEvent extends PlayerEvent
009    {
010        public final World world;
011        public final int ID;
012        public final int X;
013        public final int Y;
014        public final int Z;
015        private boolean handeled = false;
016        
017        public BonemealEvent(EntityPlayer player, World world, int id, int x, int y, int z)
018        {
019            super(player);
020            this.world = world;
021            this.ID = id;
022            this.X = x;
023            this.Y = y;
024            this.Z = z;
025        }
026        
027        public void setHandeled()
028        {
029            handeled = true;
030        }
031        
032        public boolean isHandeled()
033        {
034            return handeled;
035        }
036    }