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