Interface UseItemStackEvent.Start
-
- All Superinterfaces:
Cancellable
,Event
,UseItemStackEvent
- Enclosing interface:
- UseItemStackEvent
public static interface UseItemStackEvent.Start extends UseItemStackEvent, Cancellable
Called beforeUseItemStackEvent.Tick
when a player starts using anItemType
, typically when they hold right mouse.Examples:
- Drawing a bow
- Eating food
- Drinking Potions/Milk
- Guarding with a sword
Note: Cancelling the event, or setting the duration to <= 0 prevents the
ItemType
from processing.
-
-
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
-
-