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

    Constructors
    Constructor
    Description
    PunishmentDurationParser(de.jvstvshd.necrify.api.message.MessageProvider provider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @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, wait

    Methods 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:
      parse in interface org.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:
      suggestionProvider in interface org.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.duration.PunishmentDuration>
      Specified by:
      suggestionProvider in interface org.incendo.cloud.suggestion.SuggestionProviderHolder<de.jvstvshd.necrify.api.user.NecrifyUser>