java.lang.Object
net.minestom.server.command.builder.arguments.Argument<T>
net.minestom.server.command.builder.arguments.minecraft.ArgumentRange<T,N>
- Type Parameters:
T- the type of the range
- Direct Known Subclasses:
ArgumentFloatRange, ArgumentIntRange
Abstract class used by
ArgumentIntRange and ArgumentFloatRange.-
Field Summary
FieldsFields inherited from class Argument
allowSpace, suggestionType, useRemaining -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(CommandSender sender, String input) Parses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toTMethods inherited from class Argument
allowSpace, equals, filter, getCallback, getDefaultValue, getId, getSuggestionCallback, hasErrorCallback, hashCode, hasSuggestion, isOptional, map, map, nodeProperties, parse, parser, setCallback, setDefaultValue, setDefaultValue, setDefaultValue, setSuggestionCallback, suggestionType, useRemaining
-
Field Details
-
FORMAT_ERROR
public static final int FORMAT_ERROR- See Also:
-
-
Constructor Details
-
ArgumentRange
-
-
Method Details
-
parse
Description copied from class:ArgumentParses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toT
-