EntityRaycastOptions Interface

Extends

Contains additional options for an entity raycast operation.

Properties

ignoreBlockCollision

ignoreBlockCollision?: boolean;

If true, blocks will not be considered as blocks that 'stop' the raycast.

Type: boolean

Caution

This property is still in pre-release. Its signature may change or it may be removed in future releases.

includeLiquidBlocks

includeLiquidBlocks?: boolean;

If true, liquid blocks will be considered as blocks that 'stop' the raycast.

Type: boolean

Caution

This property is still in pre-release. Its signature may change or it may be removed in future releases.

includePassableBlocks

includePassableBlocks?: boolean;

If true, passable blocks like vines and flowers will be considered as blocks that 'stop' the raycast.

Type: boolean

Caution

This property is still in pre-release. Its signature may change or it may be removed in future releases.

maxDistance

maxDistance?: number;

Maximum distance, in blocks, to process the raycast.

Type: number