For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/interfaces/EntityRaycastOptions.md.

Interface: EntityRaycastOptions

entity

Beta

包含实体射线投射操作的额外选项。

Contains additional options for an entity raycast operation.

Extends

Properties

excludeFamilies?

optional excludeFamilies?: string[]

Beta

Remarks

排除匹配一个或多个指定系列的实体。

Excludes entities that match one or more of the specified families.

Inherited from

EntityFilter.excludeFamilies


excludeGameModes?

optional excludeGameModes?: GameMode[]

Beta

Remarks

如果实体的特定游戏模式与指定游戏模式匹配,则排除该实体。

Excludes entities if have a specific gamemode that matches the specified gamemode.

Inherited from

EntityFilter.excludeGameModes


excludeNames?

optional excludeNames?: string[]

Beta

Remarks

排除名称与指定值之一匹配的实体。

Excludes entities that have a name that match one of the specified values.

Inherited from

EntityFilter.excludeNames


excludeTags?

optional excludeTags?: string[]

Beta

Remarks

排除带有与指定值之一匹配的标签的实体。

Excludes entities with a tag that matches one of the specified values.

Inherited from

EntityFilter.excludeTags


excludeTypes?

optional excludeTypes?: string[]

Beta

Remarks

排除如果它们是指定类型之一的实体。

Excludes entities if they are one of the specified types.

Inherited from

EntityFilter.excludeTypes


families?

optional families?: string[]

Beta

Remarks

如果指定,则包含匹配所有指定系列的实体。

If specified, includes entities that match all of the specified families.

Inherited from

EntityFilter.families


gameMode?

optional gameMode?: GameMode

Beta

Remarks

如果指定,则包含游戏模式与指定游戏模式匹配的实体。

If specified, includes entities with a gamemode that matches the specified gamemode.

Inherited from

EntityFilter.gameMode


ignoreBlockCollision?

optional ignoreBlockCollision?: boolean

Beta

Remarks

如果为 true,方块将不被视为可以"阻挡"射线投射的方块。

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


includeLiquidBlocks?

optional includeLiquidBlocks?: boolean

Beta

Remarks

如果为 true,液体方块将被视为可以"阻挡"射线投射的方块。

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


includePassableBlocks?

optional includePassableBlocks?: boolean

Beta

Remarks

如果为 true,像藤蔓和花朵这类可穿过的方块将被视为可以"阻挡"射线投射的方块。

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


maxDistance?

optional maxDistance?: number

Beta

Remarks

处理射线投射的最大距离,以方块为单位。

Maximum distance, in blocks, to process the raycast.


maxHorizontalRotation?

optional maxHorizontalRotation?: number

Beta

Remarks

如果指定,则仅包含水平旋转角度最多为此值的实体。

If specified, will only include entities that have at most this horizontal rotation.

Inherited from

EntityFilter.maxHorizontalRotation


maxLevel?

optional maxLevel?: number

Beta

Remarks

如果定义,仅返回等级最多为此值的玩家。

If defined, only players that have at most this level are returned.

Inherited from

EntityFilter.maxLevel


maxVerticalRotation?

optional maxVerticalRotation?: number

Beta

Remarks

如果指定,仅返回垂直旋转角度最多为此值的实体。

If specified, only entities that have at most this vertical rotation are returned.

Inherited from

EntityFilter.maxVerticalRotation


minHorizontalRotation?

optional minHorizontalRotation?: number

Beta

Remarks

如果指定,将仅包含水平旋转角度至少为此值的实体。

If specified, will only include entities that have at a minimum this horizontal rotation.

Inherited from

EntityFilter.minHorizontalRotation


minLevel?

optional minLevel?: number

Beta

Remarks

如果定义,仅返回等级至少为此值的玩家。

If defined, only players that have at least this level are returned.

Inherited from

EntityFilter.minLevel


minVerticalRotation?

optional minVerticalRotation?: number

Beta

Remarks

如果指定,将仅包含垂直旋转角度至少为此值的实体。

If specified, will only include entities that have at least this vertical rotation.

Inherited from

EntityFilter.minVerticalRotation


name?

optional name?: string

Beta

Remarks

包含具有指定名称的实体。

Includes entities with the specified name.

Inherited from

EntityFilter.name


propertyOptions?

optional propertyOptions?: EntityQueryPropertyOptions[]

Beta

Inherited from

EntityFilter.propertyOptions


scoreOptions?

optional scoreOptions?: EntityQueryScoreOptions[]

Beta

Remarks

获取/设置一组带有特定计分板目标过滤器的 EntityQueryScoreOptions 对象。

Gets/sets a collection of EntityQueryScoreOptions objects with filters for specific scoreboard objectives.

Inherited from

EntityFilter.scoreOptions


tags?

optional tags?: string[]

Beta

Remarks

包含匹配所有指定标签的实体。

Includes entities that match all of the specified tags.

Inherited from

EntityFilter.tags


type?

optional type?: string

Beta

Remarks

如果定义,则包含匹配此类型的实体。

If defined, entities that match this type are included.

Inherited from

EntityFilter.type

同领域相关