public class ItemTossEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight| 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.
|
getEntityItemgetEntitypublic ItemTossEvent(ItemEntity entityItem, PlayerEntity player)
entityItem - The EntityItem being tossed.player - The player tossing the item.public PlayerEntity getPlayer()