public class ItemEvent extends EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityItem |
entityItem |
Constructor and Description |
---|
ItemEvent(EntityItem itemEntity)
Creates a new event for an EntityItem.
|
Modifier and Type | Method and Description |
---|---|
EntityItem |
getEntityItem()
The relevant EntityItem for this event, already cast for you.
|
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityItem entityItem
public ItemEvent(EntityItem itemEntity)
itemEntity
- The EntityItem for this eventpublic EntityItem getEntityItem()