The EntityHitInformation interface in @minecraft/server.
Interface in @minecraft/server
import type { EntityHitInformation } from '@minecraft/server';Properties
Section titled “Properties”entity
Section titled “entity”read-only
readonly entity: Entity | undefined;Types