Interface Selector.Single<V>

Type Parameters:
V - value type
All Superinterfaces:
Selector<V>
All Known Subinterfaces:
SingleEntitySelector, SinglePlayerSelector
Enclosing interface:
Selector<V>

public static interface Selector.Single<V> extends Selector<V>
A specialized Selector that can only return one value.
  • Method Details

    • values

      default @NonNull Collection<V> values()
      Description copied from interface: Selector
      Get the value of this selector.

      A successfully parsed selector must match one or more values.

      Specified by:
      values in interface Selector<V>
      Returns:
      all matched entities
    • single

      @NonNull V single()
      Get the single value from this selector.
      Returns:
      the value