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

Hierarchy

  • ItemComponentHitEntityEvent

Constructors

Properties

attackingEntity: Entity

Remarks

The attacking entity.

hadEffect: boolean

Remarks

Whether the hit landed or had any effect.

hitEntity: Entity

Remarks

The entity being hit.

itemStack?: ItemStack

Remarks

The item stack used to hit the entity.