Interface Selector.Single<V>

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

@API(status=STABLE, since="2.0.0") public static interface Selector.Single<V> extends Selector<V>
A specialized Selector that can only return one value.
Since:
2.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.incendo.cloud.bukkit.data.Selector

    Selector.Single<V>
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the single value from this selector.
    Get the value of this selector.

    Methods inherited from interface org.incendo.cloud.bukkit.data.Selector

    inputString
  • Method Details

    • values

      default @NonNull Collection<V> values()
      Description copied from interface: Selector
      Get the value of this selector.
      Specified by:
      values in interface Selector<V>
      Returns:
      all matched entities
    • single

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

      A successfully parsed Selector.Single must match a value.

      Returns:
      the value