public static class PlayerEvent.ItemPickupEvent extends PlayerEvent
PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityItem |
originalEntity
Original EntityItem with current remaining stack size
|
EntityItem |
pickedUp
Deprecated.
|
private ItemStack |
stack
Clone item stack, containing the item and amount picked up
|
player
Constructor and Description |
---|
ItemPickupEvent(EntityPlayer player,
EntityItem entPickedUp,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
EntityItem |
getOriginalEntity() |
ItemStack |
getStack() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
@Deprecated public final EntityItem pickedUp
private final EntityItem originalEntity
private final ItemStack stack
public ItemPickupEvent(EntityPlayer player, EntityItem entPickedUp, ItemStack stack)
public ItemStack getStack()
public EntityItem getOriginalEntity()