Class EntityHitAfterEventBeta

Contains information related to an entity hitting (melee attacking) another entity.

Hierarchy

  • EntityHitAfterEvent

Constructors

Properties

Constructors

Properties

entity: Entity

Remarks

Entity that made a hit/melee attack.

hitBlock?: Block

Remarks

Block 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.

hitEntity?: Entity

Remarks

Entity 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.