Class: ItemComponentHitEntityEvent
Contains information regarding when an item is used to hit an entity.
Constructors
new ItemComponentHitEntityEvent()
private
new ItemComponentHitEntityEvent():ItemComponentHitEntityEvent
Returns
Properties
attackingEntity
readonly
attackingEntity:Entity
Remarks
The attacking entity.
hadEffect
readonly
hadEffect:boolean
Remarks
Whether the hit landed or had any effect.
hitEntity
readonly
hitEntity:Entity
Remarks
The entity being hit.
itemStack?
optional
readonly
itemStack:ItemStack
Remarks
The item stack used to hit the entity.