public class ItemExpireEvent extends ItemEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private int |
extraLife |
Constructor and Description |
---|
ItemExpireEvent(ItemEntity 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
public ItemExpireEvent(ItemEntity 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.