Interface InteractItemEvent
- All Superinterfaces:
Event
,InteractEvent
- All Known Subinterfaces:
InteractItemEvent.Primary
,InteractItemEvent.Secondary
Base event for all interactions with an
ItemStack
in hand.
Note: Canceling this event will halt any future actions from occurring.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Called when a player swings its hand in the air.static interface
Called when a player interacts with an item in hand. -
Method Summary
-
Method Details
-
itemStack
ItemStackSnapshot itemStack()Gets theItemStackSnapshot
being interacted with.- Returns:
- The item being interacted with
-