2012-08-06 22:07:53 +00:00
|
|
|
package net.minecraftforge.event.entity.player;
|
|
|
|
|
|
|
|
import net.minecraft.src.Entity;
|
|
|
|
import net.minecraft.src.EntityItem;
|
|
|
|
import net.minecraft.src.EntityPlayer;
|
2012-08-07 08:24:06 +00:00
|
|
|
import net.minecraftforge.event.Cancelable;
|
2012-08-06 22:07:53 +00:00
|
|
|
|
2012-08-07 08:24:06 +00:00
|
|
|
@Cancelable
|
2012-08-06 22:07:53 +00:00
|
|
|
public class EntityItemPickupEvent extends PlayerEvent
|
|
|
|
{
|
|
|
|
public final EntityItem item;
|
2012-08-17 20:31:47 +00:00
|
|
|
private boolean handled = false;
|
2012-08-06 22:07:53 +00:00
|
|
|
|
|
|
|
public EntityItemPickupEvent(EntityPlayer player, EntityItem item)
|
|
|
|
{
|
|
|
|
super(player);
|
|
|
|
this.item = item;
|
|
|
|
}
|
2012-08-17 20:31:47 +00:00
|
|
|
|
|
|
|
public boolean isHandled()
|
|
|
|
{
|
|
|
|
return handled;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHandled()
|
|
|
|
{
|
|
|
|
handled = true;
|
|
|
|
}
|
2012-08-06 22:07:53 +00:00
|
|
|
}
|