The PlayerEntityInteractEvent class is fired when a player right-clicks somewhere an entity
The PlayerEntityInteractEvent class is a subtype of the PlayerInteractEvent class and inherits all its properties and functions.
Here is an overview of the PlayerEntityInteractEvent properties:
Property | Type | read / write |
---|---|---|
target | Entity | r |
Below you find short descriptions about each of the properties and some examples about how to use them in your spells.
The target entity.