Contains information regarding when an item is used to hit an entity.

Properties

attackingEntity: Entity

The attacking entity.

hadEffect: boolean

Whether the hit landed or had any effect.

hitEntity: Entity

The entity being hit.

itemStack?: ItemStack

The item stack used to hit the entity.