Interface UseItemStackEvent.Start
- All Superinterfaces:
Cancellable
,Event
,UseItemStackEvent
- Enclosing interface:
UseItemStackEvent
Called before
UseItemStackEvent.Tick
when a player starts using an
ItemType
, 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