Class ItemExpireEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.item.ItemEvent
net.minecraftforge.event.entity.item.ItemExpireEvent
Event that is fired when an EntityItem's age has reached its maximum
 lifespan. Canceling this event will prevent the EntityItem from being
 flagged as dead, thus staying it's removal from the world. If canceled
 it will add more time to the entities life equal to extraLife.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionItemExpireEvent(ItemEntity entityItem, int extraLife) Creates a new event for an expiring EntityItem.
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
extraLifeprivate int extraLife
 
- 
- 
Constructor Details- 
ItemExpireEventCreates a new event for an expiring EntityItem.- Parameters:
- entityItem- The EntityItem being deleted.
- extraLife- The amount of time to be added to this entities lifespan if the event is canceled.
 
 
- 
- 
Method Details- 
getExtraLifepublic int getExtraLife()
- 
setExtraLifepublic void setExtraLife(int extraLife) 
 
-