public class ItemEvent extends EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
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
public ItemEvent(EntityItem itemEntity)
itemEntity
- The EntityItem for this eventpublic EntityItem getEntityItem()