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