Entity Selector Builder
Builder class for creating EntitySelector instances with a fluent API.
Functions
Filter target selection based on the entity's advancements. This naturally filters out all non-player targets.
Filter target selection based on their Euclidean distances from some point, searching for the target's feet (a point at the bottom of the center of their hitbox).
Filter target selection based on their Euclidean distances from some point, searching for the target's feet (a point at the bottom of the center of their hitbox).
Filter target selection based on their Euclidean distances from some point, searching for the target's feet (a point at the bottom of the center of their hitbox).
Used for volume-based selection. Similar to the "dx" argument in target selectors in commands.
Used for volume-based selection. Similar to the "dy" argument in target selectors in commands.
Used for volume-based selection. Similar to the "dz" argument in target selectors in commands.
Filter target selection by game mode. This naturally filters out all non-player targets.
Adds a predicate to filter only alive entities.
Filter target selection based on the entity's experience levels. This naturally filters out all non-player targets.
Filter target selection based on the entity's experience levels. This naturally filters out all non-player targets.
Filter target selection based on the entity's experience levels. This naturally filters out all non-player targets.
Limit the number of selectable targets for a target selector
Filter target selection by name.
Filter target selection based on the entity's NBT data. Note that this selector argument should be used with care, as accessing NBT data is a heavy process for the CPU.
Sets the sorting order of the selector results. If not set, defaults to arbitrary order.
Sets the sorting order of the selector results. If not set, defaults to arbitrary order.
Sets the sorting order of the selector results. If not set, defaults to arbitrary order.
Sets the sorting order of the selector results. If not set, defaults to arbitrary order.
Filter target selection by predicates.
Filter target selection based on the entity's scoreboard tags.
Filter target selection based on teams.
Filter target selection based on entity type. If inverse is true, selects entities that are NOT of the specified type.
Sets the entity type to filter by. If inverse is true, selects entities that are NOT of the specified type.
Used for volume-based selection. Similar to the "x" argument in target selectors in commands.
Filter target selection based on the entity's rotation along the pitch axis, measured in degrees.
Used for volume-based selection. Similar to the "y" argument in target selectors in commands.
Filter target selection based on the entity's rotation along the yaw axis, measured clockwise in degrees from due south (or the positive Z direction).
Used for volume-based selection. Similar to the "z" argument in target selectors in commands.