Beta Private constructorReadonly entityEntity that made a hit/melee attack.
Optional Readonly hitBlock that was hit by the attack, or undefined if the hit attack did not hit a block. If both hitEntity and hitBlock are undefined, then the entity basically swiped into the air.
Optional Readonly hitEntity that was hit by the attack, or undefined if the hit attack did not hit an entity. If both hitEntity and hitBlock are undefined, then the entity basically swiped into the air.
Contains information related to an entity hitting (melee attacking) another entity.