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