Interface UseItemStackEvent.Tick

All Superinterfaces:
Cancellable, Event, UseItemStackEvent
Enclosing interface:
UseItemStackEvent

public static interface UseItemStackEvent.Tick extends UseItemStackEvent, Cancellable
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.