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.Tick
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.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, setDuration
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private ItemStack result
public Finish(EntityLivingBase entity, @Nonnull ItemStack item, int duration, @Nonnull ItemStack result)