Interface Selector<V>

Type Parameters:
V - value type
All Known Subinterfaces:
MultipleEntitySelector, MultiplePlayerSelector, Selector.Single<V>, SingleEntitySelector, SinglePlayerSelector

@API(status=STABLE, since="2.0.0") public interface Selector<V>
A selector string to query multiple entity-like values.
Since:
2.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A specialized Selector that can only return one value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the raw string associated with the selector.
    Get the value of this selector.
  • Method Details

    • inputString

      @NonNull String inputString()
      Get the raw string associated with the selector.
      Returns:
      the input
    • values

      @NonNull Collection<V> values()
      Get the value of this selector.
      Returns:
      all matched entities