Class ByteArgument.Builder<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,Byte>
cloud.commandframework.arguments.standard.ByteArgument.Builder<C>
- Enclosing class:
- ByteArgument<C>
@API(status=STABLE)
public static final class ByteArgument.Builder<C>
extends CommandArgument.Builder<C,Byte>
-
Method Summary
Modifier and TypeMethodDescription@NonNull ByteArgument.Builder<C>asOptionalWithDefault(byte defaultValue) Sets the command argument to be optional, with the specified default value.@NonNull ByteArgument<C>build()Builder a new byte argument@NonNull ByteArgument.Builder<C>withMax(byte max) Set a maximum value@NonNull ByteArgument.Builder<C>withMin(byte 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
@API(status=STABLE, since="1.5.0") public @NonNull ByteArgument.Builder<C> asOptionalWithDefault(byte defaultValue) 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:
-
build
Builder a new byte argument- Overrides:
buildin classCommandArgument.Builder<C,Byte> - Returns:
- Constructed argument
-