Contains information regarding an event before a player interacts with an entity.
Properties
cancel
cancel: boolean;
If set to true the interaction will be cancelled.
Type: boolean
itemStack
read-only itemStack?: ItemStack;
The item stack that is being used in the interaction, or undefined if empty hand.
Type: ItemStack
player
read-only player: Player;
Source Player for this event.
Type: Player
target
read-only target: Entity;
The entity that will be interacted with.
Type: Entity