Class AxisArgument.Builder<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,T>
cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,EnumSet<net.minecraft.core.Direction.Axis>,AxisArgument.Builder<C>>
cloud.commandframework.fabric.argument.AxisArgument.Builder<C>
- Type Parameters:
C
- sender type
- Enclosing class:
- AxisArgument<C>
public static final class AxisArgument.Builder<C>
extends cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,EnumSet<net.minecraft.core.Direction.Axis>,AxisArgument.Builder<C>>
Builder for
AxisArgument
.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull AxisArgument.Builder<C>
asOptionalWithDefault
(@NonNull Set<@NonNull net.minecraft.core.Direction.Axis> defaultValue) Sets the command argument to be optional, with the specified default value.@NonNull AxisArgument<C>
build()
Build a newAxisArgument
.Methods inherited from class cloud.commandframework.arguments.CommandArgument.TypedBuilder
asOptional, asOptionalWithDefault, asRequired, manager, self, withParser, withSuggestionsProvider
Methods inherited from class cloud.commandframework.arguments.CommandArgument.Builder
getDefaultDescription, getDefaultValue, getName, getParser, getSuggestionsProvider, getValueType, isRequired, withDefaultDescription
-
Method Details
-
build
Build a newAxisArgument
. -
asOptionalWithDefault
public @NonNull AxisArgument.Builder<C> asOptionalWithDefault(@NonNull Set<@NonNull net.minecraft.core.Direction.Axis> 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:
-
CommandArgument.Builder.asOptionalWithDefault(String)
-