public static interface UseItemStackEvent.Finish extends UseItemStackEvent
UseItemStackEvent.Stop
when an ItemType
has finished being
used.
Example:
PotionEffectType
that's
already applied.UseItemStackEvent.Finish, UseItemStackEvent.Start, UseItemStackEvent.Stop, UseItemStackEvent.Tick
Modifier and Type | Method and Description |
---|---|
Transaction<ItemStackSnapshot> |
getItemStackResult()
Gets the
ItemStack that is placed in the player's
inventory in replacement of the stack that is currently being used. |
getItemStackInUse, getOriginalRemainingDuration, getRemainingDuration, setRemainingDuration
isCancelled, setCancelled
getCause
Transaction<ItemStackSnapshot> getItemStackResult()
ItemStack
that is placed in the player's
inventory in replacement of the stack that is currently being used.ItemStack