public static class PlayerEvent.ItemPickupEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private ItemEntity |
originalEntity
Original EntityItem with current remaining stack size
|
private ItemStack |
stack
Clone item stack, containing the item and amount picked up
|
Constructor and Description |
---|
ItemPickupEvent(PlayerEntity player,
ItemEntity entPickedUp,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ItemEntity |
getOriginalEntity() |
ItemStack |
getStack() |
getPlayer
getEntityLiving
getEntity
private final ItemEntity originalEntity
private final ItemStack stack
public ItemPickupEvent(PlayerEntity player, ItemEntity entPickedUp, ItemStack stack)
public ItemStack getStack()
public ItemEntity getOriginalEntity()