public static class LivingEntityUseItemEvent.Finish extends LivingEntityUseItemEvent
LivingEntityUseItemEvent.item is a copy of the item BEFORE it was used.
If you wish to cancel those effects, you should cancel one of the above events.
The result item stack is the stack that is placed in the player's inventory in replacement of the stack that is currently being used.LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.TickLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
Finish(EntityLivingBase entity,
ItemStack item,
int duration,
ItemStack result) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getResultStack() |
void |
setResultStack(ItemStack result) |
getDuration, getItem, setDurationgetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic Finish(EntityLivingBase entity, ItemStack item, int duration, ItemStack result)