Class ArgumentTime
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<Duration>
net.minestom.server.command.builder.arguments.minecraft.ArgumentTime
-
Field Summary
FieldsFields inherited from class Argument
allowSpace, suggestionType, useRemaining -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmin(int min) byte @Nullable []parse(CommandSender sender, String input) Parses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toTparser()toString()Methods inherited from class Argument
allowSpace, equals, filter, getCallback, getDefaultValue, getId, getSuggestionCallback, hasErrorCallback, hashCode, hasSuggestion, isOptional, map, map, parse, setCallback, setDefaultValue, setDefaultValue, setDefaultValue, setSuggestionCallback, suggestionType, useRemaining
-
Field Details
-
INVALID_TIME_FORMAT
public static final int INVALID_TIME_FORMAT- See Also:
-
NO_NUMBER
public static final int NO_NUMBER- See Also:
-
-
Constructor Details
-
ArgumentTime
-
-
Method Details
-
min
-
parse
Description copied from class:ArgumentParses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toT- Specified by:
parsein classArgument<Duration>- Parameters:
input- the argument to parse- Returns:
- the parsed argument
- Throws:
ArgumentSyntaxException- ifvalueis not valid
-
nodeProperties
- Overrides:
nodePropertiesin classArgument<Duration>
-
parser
-
toString
-