    001    package net.minecraftforge.event.entity.player;
    002
    003    import net.minecraft.src.Entity;
    004    import net.minecraft.src.EntityItem;
    005    import net.minecraft.src.EntityPlayer;
    006    import net.minecraftforge.event.Cancelable;
    007
    008    @Cancelable
    009    public class EntityItemPickupEvent extends PlayerEvent
    010    {
    011        public final EntityItem item;
    012        private boolean handled = false;
    013
    014        public EntityItemPickupEvent(EntityPlayer player, EntityItem item)
    015        {
    016            super(player);
    017            this.item = item;
    018        }
    019
    020        public boolean isHandled()
    021        {
    022            return handled;
    023        }
    024
    025        public void setHandled()
    026        {
    027            handled = true;
    028        }
    029    }