Class DurationArgumentResolver<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.resolver.ArgumentResolver<SENDER,Duration>
dev.rollczi.litecommands.argument.resolver.standard.DurationArgumentResolver<SENDER>
- All Implemented Interfaces:
Parser<SENDER,,RawInput, Duration> RawInputParser<SENDER,,Duration> ArgumentResolverBase<SENDER,,RawInput, Duration> MultipleArgumentResolver<SENDER,,Duration> Suggester<SENDER,,Duration> Rangeable<Argument<Duration>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ParseResult<Duration> suggest(Invocation<SENDER> invocation, Argument<Duration> argument, SuggestionContext context) Methods inherited from class dev.rollczi.litecommands.argument.resolver.ArgumentResolver
canParse, getRange, parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.argument.parser.RawInputParser
getInputType
-
Constructor Details
-
DurationArgumentResolver
public DurationArgumentResolver()
-
-
Method Details
-
parse
protected ParseResult<Duration> parse(Invocation<SENDER> invocation, Argument<Duration> context, String argument) - Specified by:
parsein classArgumentResolver<SENDER,UNIT extends TemporalAmount>
-
suggest
public SuggestionResult suggest(Invocation<SENDER> invocation, Argument<Duration> argument, SuggestionContext context)
-