Interface InteractItemEvent
-
- All Superinterfaces:
Event,InteractEvent
- All Known Subinterfaces:
InteractItemEvent.Primary,InteractItemEvent.Secondary
public interface InteractItemEvent extends InteractEvent
Base event for all interactions with anItemStackin hand.Note: Canceling this event will halt any future actions from occurring.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInteractItemEvent.PrimaryCalled when a player swings its hand in the air.static interfaceInteractItemEvent.SecondaryCalled when a player interacts with an item in hand.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStackSnapshotitemStack()Gets theItemStackSnapshotbeing interacted with.
-
-
-
Method Detail
-
itemStack
ItemStackSnapshot itemStack()
Gets theItemStackSnapshotbeing interacted with.- Returns:
- The item being interacted with
-
-