public class ItemTossEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityPlayer |
player |
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
private final EntityPlayer player
public ItemTossEvent(EntityItem entityItem, EntityPlayer player)
entityItem
- The EntityItem being tossed.player
- The player tossing the item.public EntityPlayer getPlayer()