Class ArgumentLoop<T>
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<List<T>>
net.minestom.server.command.builder.arguments.ArgumentLoop<T>
-
Field Summary
Fields inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, CONTAINER, suggestionType, useRemaining
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, equals, filter, getCallback, getDefaultValue, getId, getSuggestionCallback, hasErrorCallback, hashCode, hasSuggestion, isOptional, map, map, nodeProperties, parse, setCallback, setDefaultValue, setDefaultValue, setDefaultValue, setSuggestionCallback, suggestionType, useRemaining
-
Field Details
-
INVALID_INPUT_ERROR
public static final int INVALID_INPUT_ERROR- See Also:
-
-
Constructor Details
-
ArgumentLoop
@SafeVarargs public ArgumentLoop(@NotNull @NotNull String id, @NotNull @NotNull Argument<T>... arguments)
-
-
Method Details
-
parse
@NotNull public @NotNull List<T> parse(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String input) throws ArgumentSyntaxException Description copied from class:Argument
Parses the given input, and throw anArgumentSyntaxException
if the input cannot be converted toT
- Specified by:
parse
in classArgument<List<T>>
- Parameters:
input
- the argument to parse- Returns:
- the parsed argument
- Throws:
ArgumentSyntaxException
- ifvalue
is not valid
-
arguments
-
parser
-