PlayerInteractWithEntityAfterEvent Class

Contains information regarding an event after a player interacts with an entity.

Properties

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