@minecraft/server / EntityRaycastOptions
Interface: EntityRaycastOptions ​
Defined in: @minecraft/server/index.d.ts:23800
Contains additional options for an entity raycast operation.
Extends ​
Properties ​
excludeFamilies? ​
optionalexcludeFamilies?:string[]
Defined in: @minecraft/server/index.d.ts:23261
Remarks ​
Excludes entities that match one or more of the specified families.
Inherited from ​
excludeGameModes? ​
optionalexcludeGameModes?:GameMode[]
Defined in: @minecraft/server/index.d.ts:23268
Remarks ​
Excludes entities if have a specific gamemode that matches the specified gamemode.
Inherited from ​
excludeNames? ​
optionalexcludeNames?:string[]
Defined in: @minecraft/server/index.d.ts:23275
Remarks ​
Excludes entities that have a name that match one of the specified values.
Inherited from ​
excludeTags? ​
optionalexcludeTags?:string[]
Defined in: @minecraft/server/index.d.ts:23282
Remarks ​
Excludes entities with a tag that matches one of the specified values.
Inherited from ​
excludeTypes? ​
optionalexcludeTypes?:string[]
Defined in: @minecraft/server/index.d.ts:23288
Remarks ​
Excludes entities if they are one of the specified types.
Inherited from ​
families? ​
optionalfamilies?:string[]
Defined in: @minecraft/server/index.d.ts:23295
Remarks ​
If specified, includes entities that match all of the specified families.
Inherited from ​
gameMode? ​
optionalgameMode?:GameMode
Defined in: @minecraft/server/index.d.ts:23302
Remarks ​
If specified, includes entities with a gamemode that matches the specified gamemode.
Inherited from ​
ignoreBlockCollision? ​
optionalignoreBlockCollision?:boolean
Defined in: @minecraft/server/index.d.ts:23807
Remarks ​
If true, blocks will not be considered as blocks that 'stop' the raycast.
includeLiquidBlocks? ​
optionalincludeLiquidBlocks?:boolean
Defined in: @minecraft/server/index.d.ts:23814
Remarks ​
If true, liquid blocks will be considered as blocks that 'stop' the raycast.
includePassableBlocks? ​
optionalincludePassableBlocks?:boolean
Defined in: @minecraft/server/index.d.ts:23821
Remarks ​
If true, passable blocks like vines and flowers will be considered as blocks that 'stop' the raycast.
maxDistance? ​
optionalmaxDistance?:number
Defined in: @minecraft/server/index.d.ts:23827
Remarks ​
Maximum distance, in blocks, to process the raycast.
maxHorizontalRotation? ​
optionalmaxHorizontalRotation?:number
Defined in: @minecraft/server/index.d.ts:23309
Remarks ​
If specified, will only include entities that have at most this horizontal rotation.
Inherited from ​
EntityFilter.maxHorizontalRotation
maxLevel? ​
optionalmaxLevel?:number
Defined in: @minecraft/server/index.d.ts:23316
Remarks ​
If defined, only players that have at most this level are returned.
Inherited from ​
maxVerticalRotation? ​
optionalmaxVerticalRotation?:number
Defined in: @minecraft/server/index.d.ts:23323
Remarks ​
If specified, only entities that have at most this vertical rotation are returned.
Inherited from ​
EntityFilter.maxVerticalRotation
minHorizontalRotation? ​
optionalminHorizontalRotation?:number
Defined in: @minecraft/server/index.d.ts:23330
Remarks ​
If specified, will only include entities that have at a minimum this horizontal rotation.
Inherited from ​
EntityFilter.minHorizontalRotation
minLevel? ​
optionalminLevel?:number
Defined in: @minecraft/server/index.d.ts:23337
Remarks ​
If defined, only players that have at least this level are returned.
Inherited from ​
minVerticalRotation? ​
optionalminVerticalRotation?:number
Defined in: @minecraft/server/index.d.ts:23344
Remarks ​
If specified, will only include entities that have at least this vertical rotation.
Inherited from ​
EntityFilter.minVerticalRotation
name? ​
optionalname?:string
Defined in: @minecraft/server/index.d.ts:23350
Remarks ​
Includes entities with the specified name.
Inherited from ​
propertyOptions? ​
optionalpropertyOptions?:EntityQueryPropertyOptions[]
Defined in: @minecraft/server/index.d.ts:23351
Inherited from ​
scoreOptions? ​
optionalscoreOptions?:EntityQueryScoreOptions[]
Defined in: @minecraft/server/index.d.ts:23358
Remarks ​
Gets/sets a collection of EntityQueryScoreOptions objects with filters for specific scoreboard objectives.
Inherited from ​
tags? ​
optionaltags?:string[]
Defined in: @minecraft/server/index.d.ts:23364
Remarks ​
Includes entities that match all of the specified tags.
Inherited from ​
type? ​
optionaltype?:string
Defined in: @minecraft/server/index.d.ts:23370
Remarks ​
If defined, entities that match this type are included.