Class PunishmentDurationParser
java.lang.Object
de.jvstvshd.necrify.common.commands.PunishmentDurationParser
- All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,,de.jvstvshd.necrify.api.duration.PunishmentDuration> org.incendo.cloud.suggestion.SuggestionProviderHolder<de.jvstvshd.necrify.api.user.NecrifyUser>
public class PunishmentDurationParser
extends Object
implements org.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.duration.PunishmentDuration>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C,T> -
Constructor Summary
ConstructorsConstructorDescriptionPunishmentDurationParser(de.jvstvshd.necrify.api.message.MessageProvider provider) -
Method Summary
Modifier and TypeMethodDescription@NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull de.jvstvshd.necrify.api.duration.PunishmentDuration> parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull de.jvstvshd.necrify.api.user.NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput) @NonNull org.incendo.cloud.suggestion.SuggestionProvider<de.jvstvshd.necrify.api.user.NecrifyUser> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, parseFuture
-
Constructor Details
-
PunishmentDurationParser
public PunishmentDurationParser(de.jvstvshd.necrify.api.message.MessageProvider provider)
-
-
Method Details
-
parse
public @NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull de.jvstvshd.necrify.api.duration.PunishmentDuration> parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull de.jvstvshd.necrify.api.user.NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput) - Specified by:
parsein interfaceorg.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.duration.PunishmentDuration>
-
suggestionProvider
public @NonNull org.incendo.cloud.suggestion.SuggestionProvider<de.jvstvshd.necrify.api.user.NecrifyUser> suggestionProvider()- Specified by:
suggestionProviderin interfaceorg.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.duration.PunishmentDuration> - Specified by:
suggestionProviderin interfaceorg.incendo.cloud.suggestion.SuggestionProviderHolder<de.jvstvshd.necrify.api.user.NecrifyUser>
-