Skip to main content

Class: EntityHitBlockAfterEvent

Contains information related to an entity hitting a block.

Constructors

new EntityHitBlockAfterEvent()

private new EntityHitBlockAfterEvent(): EntityHitBlockAfterEvent

Returns

EntityHitBlockAfterEvent

Properties

blockFace

readonly blockFace: Direction

Remarks

Face of the block that was hit.


damagingEntity

readonly damagingEntity: Entity

Remarks

Entity that made the attack.


hitBlock

readonly hitBlock: Block

Remarks

Block that was hit by the attack.


hitBlockPermutation

Beta

readonly hitBlockPermutation: BlockPermutation

Remarks

Block permutation that was hit by the attack.