类 PlayerInteractWithEntityBeforeEvent实验性

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

属性

cancel: boolean

If set to true the interaction will be cancelled.

itemStack?: ItemStack

The item stack that is being used in the interaction, or undefined if empty hand.

player: Player

Source Player for this event.

target: Entity

The entity that will be interacted with.