Class MultipleEntitySelectorArgument<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector>
cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorArgument<C>
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<MultipleEntitySelector>,Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>
public final class MultipleEntitySelectorArgument<C>
extends cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull MultipleEntitySelectorArgument.Builder<C>newBuilder(@NonNull String name) Create a new builderstatic <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> Create a new required command argumentstatic <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> Create a new optional command argumentstatic <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> Create a new required command argument with a default valueMethods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
Method Details
-
newBuilder
public static <C> @NonNull MultipleEntitySelectorArgument.Builder<C> newBuilder(@NonNull String name) Create a new builder- Type Parameters:
C- Command sender type- Parameters:
name- Name of the argument- Returns:
- Created builder
-
of
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> of(@NonNull String name) Create a new required command argument- Type Parameters:
C- Command sender type- Parameters:
name- Argument name- Returns:
- Created argument
-
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> optional(@NonNull String name) Create a new optional command argument- Type Parameters:
C- Command sender type- Parameters:
name- Argument name- Returns:
- Created argument
-
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,MultipleEntitySelector> optional(@NonNull String name, @NonNull String defaultEntitySelector) Create a new required command argument with a default value- Type Parameters:
C- Command sender type- Parameters:
name- Argument namedefaultEntitySelector- Default player- Returns:
- Created argument
-