BetaProtectedconstructorBetaReadonly BetaentityEntity that made a hit/melee attack.
Optional Readonly BetahitBlock 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 BetahitEntity 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.