Interface: EntityQueryOptions
entityBeta
包含在区域内选择实体的选项。
Examples
Extends
Properties
closest?
optionalclosest?:number
Beta
Remarks
限制返回的实体数量,按照此属性指定的最近 N 个实体来选择。查询选项对象上也必须指定 location 值。
Limits the number of entities to return, opting for the closest N entities as specified by this property. The location value must also be specified on the query options object.
excludeFamilies?
optionalexcludeFamilies?:string[]
Beta
Remarks
排除匹配一个或多个指定系列的实体。
Excludes entities that match one or more of the specified families.
Inherited from
excludeGameModes?
optionalexcludeGameModes?:GameMode[]
Beta
Remarks
如果实体的特定游戏模式与指定游戏模式匹配,则排除该实体。
Excludes entities if have a specific gamemode that matches the specified gamemode.
Inherited from
excludeNames?
optionalexcludeNames?:string[]
Beta
Remarks
排除名称与指定值之一匹配的实体。
Excludes entities that have a name that match one of the specified values.
Inherited from
excludeTags?
optionalexcludeTags?:string[]
Beta
Remarks
排除带有与指定值之一匹配的标签的实体。
Excludes entities with a tag that matches one of the specified values.
Inherited from
excludeTypes?
optionalexcludeTypes?:string[]
Beta
Remarks
排除如果它们是指定类型之一的实体。
Excludes entities if they are one of the specified types.
Inherited from
families?
optionalfamilies?:string[]
Beta
Remarks
如果指定,则包含匹配所有指定系列的实体。
If specified, includes entities that match all of the specified families.
Inherited from
farthest?
optionalfarthest?:number
Beta
Remarks
限制返回的实体数量,按照此属性指定的最远 N 个实体来选择。查询选项对象上也必须指定 location 值。
Limits the number of entities to return, opting for the farthest N entities as specified by this property. The location value must also be specified on the query options object.
gameMode?
optionalgameMode?:GameMode
Beta
Remarks
如果指定,则包含游戏模式与指定游戏模式匹配的实体。
If specified, includes entities with a gamemode that matches the specified gamemode.
Inherited from
location?
optionallocation?:Vector3
Beta
Remarks
向查询添加一个种子位置,与 closest、farthest、limit、volume 和 distance 属性配合使用。
Adds a seed location to the query that is used in conjunction with closest, farthest, limit, volume, and distance properties.
maxDistance?
optionalmaxDistance?:number
Beta
Remarks
如果指定,则包含距离 location 属性中指定位置小于此距离的实体。
If specified, includes entities that are less than this distance away from the location specified in the location property.
maxHorizontalRotation?
optionalmaxHorizontalRotation?:number
Beta
Remarks
如果指定,则仅包含水平旋转角度最多为此值的实体。
If specified, will only include entities that have at most this horizontal rotation.
Inherited from
EntityFilter.maxHorizontalRotation
maxLevel?
optionalmaxLevel?:number
Beta
Remarks
如果定义,仅返回等级最多为此值的玩家。
If defined, only players that have at most this level are returned.
Inherited from
maxVerticalRotation?
optionalmaxVerticalRotation?:number
Beta
Remarks
如果指定,仅返回垂直旋转角度最多为此值的实体。
If specified, only entities that have at most this vertical rotation are returned.
Inherited from
EntityFilter.maxVerticalRotation
minDistance?
optionalminDistance?:number
Beta
Remarks
如果指定,则包含距离 location 属性中指定位置至少为此距离的实体。
If specified, includes entities that are least this distance away from the location specified in the location property.
minHorizontalRotation?
optionalminHorizontalRotation?:number
Beta
Remarks
如果指定,将仅包含水平旋转角度至少为此值的实体。
If specified, will only include entities that have at a minimum this horizontal rotation.
Inherited from
EntityFilter.minHorizontalRotation
minLevel?
optionalminLevel?:number
Beta
Remarks
如果定义,仅返回等级至少为此值的玩家。
If defined, only players that have at least this level are returned.
Inherited from
minVerticalRotation?
optionalminVerticalRotation?:number
Beta
Remarks
如果指定,将仅包含垂直旋转角度至少为此值的实体。
If specified, will only include entities that have at least this vertical rotation.
Inherited from
EntityFilter.minVerticalRotation
name?
optionalname?:string
Beta
Remarks
包含具有指定名称的实体。
Includes entities with the specified name.
Inherited from
propertyOptions?
optionalpropertyOptions?:EntityQueryPropertyOptions[]
Beta
Inherited from
scoreOptions?
optionalscoreOptions?:EntityQueryScoreOptions[]
Beta
Remarks
获取/设置一组带有特定计分板目标过滤器的 EntityQueryScoreOptions 对象。
Gets/sets a collection of EntityQueryScoreOptions objects with filters for specific scoreboard objectives.
Inherited from
tags?
optionaltags?:string[]
Beta
Remarks
包含匹配所有指定标签的实体。
Includes entities that match all of the specified tags.
Inherited from
type?
optionaltype?:string
Beta
Remarks
如果定义,则包含匹配此类型的实体。
If defined, entities that match this type are included.
Inherited from
volume?
optionalvolume?:Vector3
Beta
Remarks
与 location 结合使用,指定一个要包含的实体的长方体体积。
In conjunction with location, specified a cuboid volume of entities to include.
