Interface Selector<V>
- Type Parameters:
V- value type
- All Known Subinterfaces:
MultipleEntitySelector, MultiplePlayerSelector, Selector.Single<V>, SingleEntitySelector, SinglePlayerSelector
public interface Selector<V>
A selector string to query multiple entity-like values.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA specializedSelectorthat can only return one value. -
Method Summary
Modifier and TypeMethodDescriptionGet the raw string associated with the selector.@Nullable net.minecraft.commands.arguments.selector.EntitySelectorselector()If this value came from a parsedEntitySelector, this will provide the details of that selector.values()Get the value of this selector.
-
Method Details
-
inputString
-
selector
@Nullable net.minecraft.commands.arguments.selector.EntitySelector selector()If this value came from a parsedEntitySelector, this will provide the details of that selector.- Returns:
- the selector
-
values
@NonNull Collection<V> values()Get the value of this selector.A successfully parsed selector must match one or more values.
- Returns:
- all matched entities
-