The EntityHitBlockAfterEvent class in @minecraft/server.
Class in @minecraft/server
import { EntityHitBlockAfterEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”blockFace
Section titled “blockFace”read-only
readonly blockFace: Direction;Types
damagingEntity
Section titled “damagingEntity”read-only
readonly damagingEntity: Entity;Types
hitBlock
Section titled “hitBlock”read-only
readonly hitBlock: Block;Types
hitBlockPermutation
Section titled “hitBlockPermutation”read-only
readonly hitBlockPermutation: BlockPermutation;Types
Used by
Section titled “Used by”EntityHitBlockAfterEventSignal.subscribe, EntityHitBlockAfterEventSignal.unsubscribe