public class ItemExpireEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.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) | 
getEntityItemgetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic 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.