Interface UseItemStackEvent.Tick
- All Superinterfaces:
Cancellable
,Event
,UseItemStackEvent
- Enclosing interface:
UseItemStackEvent
Called after
UseItemStackEvent.Start
during each tick as an
ItemType
is being used.
In Vanilla, tick actions are used to play eating particles and sounds.
In Vanilla, items only perform an action every 4 ticks, and only when 25 or fewer ticks remaining. Cancelling this event on other ticks will have no effect in Vanilla.
Cancelling the event will cause no action to be taken for the particular item for the tick being processed.
Note: Setting the duration 0 will cause the player to finish using the item.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.UseItemStackEvent
UseItemStackEvent.Finish, UseItemStackEvent.Replace, UseItemStackEvent.Reset, UseItemStackEvent.Start, UseItemStackEvent.Stop, UseItemStackEvent.Tick
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.item.inventory.UseItemStackEvent
itemStackInUse, originalRemainingDuration, remainingDuration, setRemainingDuration