Class ListVariableValueArgument<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,String>
rocks.gravili.notquests.paper.commands.arguments.variables.ListVariableValueArgument<C>
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<String>
,Comparable<cloud.commandframework.arguments.CommandArgument<?,
?>>
public final class ListVariableValueArgument<C>
extends cloud.commandframework.arguments.CommandArgument<C,String>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull ListVariableValueArgument.Builder<C>
newBuilder
(@NonNull String name, NotQuests main, Variable<?> variable) Create a newListVariableValueArgument.Builder
.static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
String> Create a new requiredListVariableValueArgument
.static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
String> Create a new requiredListVariableValueArgument
with the specified default value.static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
String> Create a new optionalListVariableValueArgument
.Methods 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 ListVariableValueArgument.Builder<C> newBuilder(@NonNull String name, NotQuests main, Variable<?> variable) Create a newListVariableValueArgument.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,String> of(@NonNull String name, NotQuests main, Variable<?> variable) Create a new requiredListVariableValueArgument
.- Type Parameters:
C
- Command sender type- Parameters:
name
- Argument name- Returns:
- Created argument
-
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String> optional(@NonNull String name, NotQuests main, Variable<?> variable) Create a new optionalListVariableValueArgument
.- Type Parameters:
C
- Command sender type- Parameters:
name
- Argument name- Returns:
- Created argument
-
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String> optional(@NonNull String name, int defaultNum, NotQuests main, Variable<?> variable) Create a new requiredListVariableValueArgument
with the specified default value.- Type Parameters:
C
- Command sender type- Parameters:
name
- Argument namedefaultNum
- Default value- Returns:
- Created argument
-