public class ItemTossEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
player |
Constructor and Description |
---|
ItemTossEvent(ItemEntity entityItem,
PlayerEntity player)
Creates a new event for EntityItems tossed by a player.
|
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
getPlayer()
The player tossing the item.
|
getEntityItem
getEntity
private final PlayerEntity player
public ItemTossEvent(ItemEntity entityItem, PlayerEntity player)
entityItem
- The EntityItem being tossed.player
- The player tossing the item.public PlayerEntity getPlayer()