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

Hierarchy

  • PlayerInteractWithEntityAfterEvent

Constructors

Properties

beforeItemStack?: ItemStack

Remarks

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

itemStack?: ItemStack

Remarks

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

player: Player

Remarks

Source Player for this event.

target: Entity

Remarks

The entity that will be interacted with.