Class ZoomArgument<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
net.pl3x.map.core.command.argument.ZoomArgument<C>
- Type Parameters:
C- command sender type
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Integer>,Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>
public class ZoomArgument<C>
extends cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer>
A
Integer argument that belongs to a command.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedZoomArgument(boolean required, @NotNull String name, @NotNull String defaultValue, @NotNull BiFunction<@NotNull cloud.commandframework.context.CommandContext<@NotNull C>, @NotNull String, @NotNull List<@NotNull String>> suggestionsProvider, @NotNull cloud.commandframework.ArgumentDescription defaultDescription) -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NotNull cloud.commandframework.arguments.CommandArgument.Builder<@NotNull C,@NotNull Integer> newBuilder(@NotNull String name) Create a newZoomArgumentbuilder.static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> Create a requiredZoomArgument.static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> Create an optionalZoomArgument.static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> Create an optionalZoomArgumentwith a default value.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
-
Constructor Details
-
ZoomArgument
protected ZoomArgument(boolean required, @NotNull @NotNull String name, @NotNull @NotNull String defaultValue, @NotNull @NotNull BiFunction<@NotNull cloud.commandframework.context.CommandContext<@NotNull C>, @NotNull String, @NotNull List<@NotNull String>> suggestionsProvider, @NotNull @NotNull cloud.commandframework.ArgumentDescription defaultDescription)
-
-
Method Details
-
newBuilder
public static <C> @NotNull cloud.commandframework.arguments.CommandArgument.Builder<@NotNull C,@NotNull Integer> newBuilder(@NotNull @NotNull String name) Create a newZoomArgumentbuilder.- Parameters:
name- argument name- Returns:
- new player argument builder
-
of
@NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> of(@NotNull @NotNull String name) Create a requiredZoomArgument.- Parameters:
name- argument name- Returns:
- constructed player argument
-
optional
@NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> optional(@NotNull @NotNull String name) Create an optionalZoomArgument.All arguments prior to any other required argument must also be required.
- Parameters:
name- argument name- Returns:
- constructed player argument
-
optional
@NotNull public static <C> @NotNull cloud.commandframework.arguments.CommandArgument<@NotNull C,@NotNull Integer> optional(@NotNull @NotNull String name, @NotNull @NotNull String defaultValue) Create an optionalZoomArgumentwith a default value.All arguments prior to any other required argument must also be required.
- Parameters:
name- argument namedefaultValue- default value that will be used if none was supplied- Returns:
- constructed player argument
-