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.ReplaceorUseItemStackEvent.Stop.If an entity has finished using an item normally, either by using it for the maximum duration or by stopping prematurely, then
UseItemStackEvent.StoporUseItemStackEvent.Finishwill have been called beforehand.If the item use was 'cancelled' without finishing normally, such as an entity switching its held item, then
UseItemStackEvent.StoporUseItemStackEvent.Finishwill not have been called.Example:
- A player drawing back a bow, but switching to another hotbar slot without releasing their secondary mouse button.
-
-
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.item.inventory.UseItemStackEvent
itemStackInUse, originalRemainingDuration, remainingDuration, setRemainingDuration
-
-