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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCalled when a player swings its hand in the air.static interfaceCalled when a player interacts with an item in hand. -
Method Summary
-
Method Details
-
itemStack
ItemStackSnapshot itemStack()Gets theItemStackSnapshotbeing interacted with.- Returns:
- The item being interacted with
-