Class BooleanArgument.Builder<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,Boolean>
cloud.commandframework.arguments.standard.BooleanArgument.Builder<C>
- Enclosing class:
- BooleanArgument<C>
@API(status=STABLE)
public static final class BooleanArgument.Builder<C>
extends CommandArgument.Builder<C,Boolean>
-
Method Summary
Modifier and TypeMethodDescription@NonNull BooleanArgument<C>
build()
Builder a new boolean argument@NonNull BooleanArgument.Builder<C>
withLiberal
(boolean liberal) Set the liberal toggleMethods inherited from class cloud.commandframework.arguments.CommandArgument.Builder
asOptional, asOptionalWithDefault, asRequired, getDefaultDescription, getDefaultValue, getName, getParser, getSuggestionsProvider, getValueType, isRequired, manager, withDefaultDescription, withParser, withSuggestionsProvider
-
Method Details
-
withLiberal
Set the liberal toggle- Parameters:
liberal
- liberal value- Returns:
- Builder instance
-
build
Builder a new boolean argument- Overrides:
build
in classCommandArgument.Builder<C,
Boolean> - Returns:
- Constructed argument
-