|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.event.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.item.ItemEvent
net.minecraftforge.event.entity.item.ItemExpireEvent
public class 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 entitie's life equal to extraLife.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent |
---|
EntityEvent.CanUpdate, EntityEvent.EnteringChunk |
Nested classes/interfaces inherited from class net.minecraftforge.event.Event |
---|
Event.HasResult, Event.Result |
Field Summary | |
---|---|
int |
extraLife
|
Fields inherited from class net.minecraftforge.event.entity.item.ItemEvent |
---|
entityItem |
Fields inherited from class net.minecraftforge.event.entity.EntityEvent |
---|
entity |
Constructor Summary | |
---|---|
ItemExpireEvent(EntityItem entityItem,
int extraLife)
Creates a new event for an expiring EntityItem. |
Method Summary |
---|
Methods inherited from class net.minecraftforge.event.Event |
---|
getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResult |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int extraLife
Constructor Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |