Class PeriodArgumentResolver<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.resolver.ArgumentResolver<SENDER,UNIT>
dev.rollczi.litecommands.argument.resolver.standard.PeriodArgumentResolver<SENDER>
- All Implemented Interfaces:
Parser<SENDER,,RawInput, Period> RawInputParser<SENDER,,Period> MultipleArgumentResolver<SENDER,,Period> Suggester<SENDER,,Period> Rangeable<Argument<Period>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ParseResult<Period>suggest(Invocation<SENDER> invocation, Argument<Period> argument, SuggestionContext context) Methods inherited from class dev.rollczi.litecommands.argument.resolver.ArgumentResolver
canParse, 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
-
PeriodArgumentResolver
public PeriodArgumentResolver()
-
-
Method Details
-
parse
protected ParseResult<Period> parse(Invocation<SENDER> invocation, Argument<Period> context, String argument) - Specified by:
parsein classArgumentResolver<SENDER,UNIT extends TemporalAmount>
-
suggest
public SuggestionResult suggest(Invocation<SENDER> invocation, Argument<Period> argument, SuggestionContext context)
-