Interface UseItemStackEvent.Reset

All Superinterfaces:
Event, UseItemStackEvent
Enclosing interface:
UseItemStackEvent

public static interface UseItemStackEvent.Reset extends UseItemStackEvent
Called before an entity's used item state is reset.

In Vanilla, this usually occurs after UseItemStackEvent.Replace or UseItemStackEvent.Stop.

If an entity has finished using an item normally, either by using it for the maximum duration or by stopping prematurely, then UseItemStackEvent.Stop or UseItemStackEvent.Finish will have been called beforehand.

If the item use was 'cancelled' without finishing normally, such as an entity switching its held item, then UseItemStackEvent.Stop or UseItemStackEvent.Finish will not have been called.

Example:

  • A player drawing back a bow, but switching to another hotbar slot without releasing their secondary mouse button.