类 PlayerInteractWithEntityAfterEvent实验性

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

属性

beforeItemStack?: ItemStack

The ItemStack before the interaction succeeded, or undefined if hand is empty.

itemStack?: ItemStack

The ItemStack after the interaction succeeded, or undefined if hand is empty.

player: Player

Source Player for this event.

target: Entity

The entity that will be interacted with.