public class ItemTossEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing| Constructor and Description |
|---|
ItemTossEvent(EntityItem entityItem,
EntityPlayer player)
Creates a new event for EntityItems tossed by a player.
|
| Modifier and Type | Method and Description |
|---|---|
EntityPlayer |
getPlayer()
The player tossing the item.
|
getEntityItemgetEntitypublic ItemTossEvent(EntityItem entityItem, EntityPlayer player)
entityItem - The EntityItem being tossed.player - The player tossing the item.public EntityPlayer getPlayer()