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, EntityEvent.EyeHeight
Constructor and Description |
---|
Finish(LivingEntity entity,
ItemStack item,
int duration,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
getResultStack() |
void |
setResultStack(ItemStack result) |
getDuration, getItem, setDuration
getEntityLiving
getEntity
private ItemStack result
public Finish(LivingEntity entity, @Nonnull ItemStack item, int duration, @Nonnull ItemStack result)