Class PlainNumberVariableValueArgument.Builder<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,Long>
rocks.gravili.notquests.paper.commands.arguments.variables.PlainNumberVariableValueArgument.Builder<C>
- Enclosing class:
- PlainNumberVariableValueArgument<C>
public static final class PlainNumberVariableValueArgument.Builder<C>
extends cloud.commandframework.arguments.CommandArgument.Builder<C,Long>
-
Method Summary
Modifier and TypeMethodDescriptionasOptionalWithDefault
(long defaultValue) Sets the command argument to be optional, with the specified default value.build()
withMax
(long max) Set a maximum valuewithMin
(long min) Set a minimum valueMethods inherited from class cloud.commandframework.arguments.CommandArgument.Builder
asOptional, asOptionalWithDefault, asRequired, getDefaultDescription, getDefaultValue, getName, getParser, getSuggestionsProvider, getValueType, isRequired, manager, withDefaultDescription, withParser, withSuggestionsProvider
-
Method Details
-
withMin
Set a minimum value- Parameters:
min
- Minimum value- Returns:
- Builder instance
-
withMax
Set a maximum value- Parameters:
max
- Maximum value- Returns:
- Builder instance
-
asOptionalWithDefault
Sets the command argument to be optional, with the specified default value.- Parameters:
defaultValue
- default value- Returns:
- this builder
- Since:
- 1.5.0
- See Also:
-
CommandArgument.Builder.asOptionalWithDefault(String)
-
build
-