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.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
Finish(LivingEntity entity,
ItemStack item,
int duration,
ItemStack result) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ItemStack |
getResultStack() |
void |
setResultStack(ItemStack result) |
getDuration, getItem, setDurationgetEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic Finish(LivingEntity entity, @Nonnull ItemStack item, int duration, @Nonnull ItemStack result)