Class MultipleEntitySelectorArgument.Builder<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,T>
cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,MultipleEntitySelector,MultipleEntitySelectorArgument.Builder<C>>
cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorArgument.Builder<C>
Enclosing class:
MultipleEntitySelectorArgument<C>

public static final class MultipleEntitySelectorArgument.Builder<C> extends cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,MultipleEntitySelector,MultipleEntitySelectorArgument.Builder<C>>
  • Method Summary

    Modifier and Type
    Method
    Description
    allowEmpty(boolean allowEmpty)
    Set whether to allow empty results.
    Builder a new argument

    Methods inherited from class cloud.commandframework.arguments.CommandArgument.TypedBuilder

    asOptional, asOptionalWithDefault, asRequired, manager, self, withParser, withSuggestionsProvider

    Methods inherited from class cloud.commandframework.arguments.CommandArgument.Builder

    getDefaultDescription, getDefaultValue, getName, getParser, getSuggestionsProvider, getValueType, isRequired, withDefaultDescription

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • allowEmpty

      @API(status=STABLE, since="1.8.0") public @NonNull MultipleEntitySelectorArgument.Builder<C> allowEmpty(boolean allowEmpty)
      Set whether to allow empty results.
      Parameters:
      allowEmpty - whether to allow empty results
      Returns:
      builder instance
      Since:
      1.8.0
    • build

      public @NonNull MultipleEntitySelectorArgument<C> build()
      Builder a new argument
      Overrides:
      build in class cloud.commandframework.arguments.CommandArgument.Builder<C,MultipleEntitySelector>
      Returns:
      Constructed argument