The EntityFilter interface in @minecraft/server.
Interface in @minecraft/server
Extended by EntityRaycastOptions
import type { EntityFilter } from '@minecraft/server';Properties
Section titled “Properties”excludeFamilies
Section titled “excludeFamilies”optional
excludeFamilies?: string[];excludeGameModes
Section titled “excludeGameModes”optional
excludeGameModes?: GameMode[];Types
excludeNames
Section titled “excludeNames”optional
excludeNames?: string[];excludeTags
Section titled “excludeTags”optional
excludeTags?: string[];excludeTypes
Section titled “excludeTypes”optional
excludeTypes?: string[];families
Section titled “families”optional
families?: string[];gameMode
Section titled “gameMode”optional
gameMode?: GameMode;Types
maxHorizontalRotation
Section titled “maxHorizontalRotation”optional
maxHorizontalRotation?: number;maxLevel
Section titled “maxLevel”optional
maxLevel?: number;maxVerticalRotation
Section titled “maxVerticalRotation”optional
maxVerticalRotation?: number;minHorizontalRotation
Section titled “minHorizontalRotation”optional
minHorizontalRotation?: number;minLevel
Section titled “minLevel”optional
minLevel?: number;minVerticalRotation
Section titled “minVerticalRotation”optional
minVerticalRotation?: number;optional
name?: string;propertyOptions
Section titled “propertyOptions”optional
propertyOptions?: EntityQueryPropertyOptions[];scoreOptions
Section titled “scoreOptions”optional
scoreOptions?: EntityQueryScoreOptions[];optional
tags?: string[];optional
type?: string;Used by
Section titled “Used by”ContainerAccessSourceFilter.entityFilter, EntityContainerAccessEventOptions.entityFilter, EntityHealEventOptions.entityFilter, EntityHurtAfterEventOptions.entityFilter, EntityHurtBeforeEventOptions.entityFilter, EntityItemDropEventOptions.entityFilter, EntityItemPickupEventOptions.entityFilter, EntitySneakingChangedEventOptions.entityFilter, EntityTamedEventOptions.entityFilter, EntityTamedEventOptions.tamingEntityFilter, PlayerBreakingBlockEventOptions.playerFilter