public static interface UseItemStackEvent.Finish extends UseItemStackEvent, Cancellable
UseItemStackEvent.Stop
, this
event will not fire if the item use was interrupted in any way.
Examples:
This event will always be fired with an original duration of 0. Setting the duration to an integer greater than 0 will cause the entity to continue using the item.
Cancelling this event prevents the 'finished' action
from taking place. For example, this would prevent a Vanilla
potion item from apply its effects to a player. UseItemStackEvent.Reset
will then be fired, while UseItemStackEvent.Replace
will be skipped.
UseItemStackEvent.Finish, UseItemStackEvent.Replace, UseItemStackEvent.Reset, UseItemStackEvent.Start, UseItemStackEvent.Stop, UseItemStackEvent.Tick
getItemStackInUse, getOriginalRemainingDuration, getRemainingDuration, setRemainingDuration
getCause, getContext, getSource
isCancelled, setCancelled