public class ItemExpireEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
ItemExpireEvent(EntityItem entityItem,
int extraLife)
Creates a new event for an expiring EntityItem.
|
Modifier and Type | Method and Description |
---|---|
int |
getExtraLife() |
void |
setExtraLife(int extraLife) |
getEntityItem
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ItemExpireEvent(EntityItem entityItem, int extraLife)
entityItem
- The EntityItem being deleted.extraLife
- The amount of time to be added to this entities lifespan if the event is canceled.