The EntityRaycastHit interface in @minecraft/server.
Interface in @minecraft/server
import type { EntityRaycastHit } from '@minecraft/server';Properties
Section titled “Properties”distance
Section titled “distance”distance: number;entity
Section titled “entity”entity: Entity;Types
Used by
Section titled “Used by”Entity.getEntitiesFromViewDirection, Dimension.getEntitiesFromRay