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