public class ItemTossEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
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.
|
getEntityItem
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ItemTossEvent(EntityItem entityItem, EntityPlayer player)
entityItem
- The EntityItem being tossed.player
- The player tossing the item.public EntityPlayer getPlayer()