Class PunishmentTypeParser

java.lang.Object
de.jvstvshd.necrify.common.commands.PunishmentTypeParser
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<NecrifyUser,PunishmentType>, org.incendo.cloud.suggestion.SuggestionProviderHolder<NecrifyUser>

public class PunishmentTypeParser extends Object implements org.incendo.cloud.parser.ArgumentParser<NecrifyUser,PunishmentType>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser

    org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<C,T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull PunishmentType>
    parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
     
    @NonNull org.incendo.cloud.suggestion.SuggestionProvider<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

    • PunishmentTypeParser

      public PunishmentTypeParser()
  • Method Details

    • parse

      public @NonNull org.incendo.cloud.parser.ArgumentParseResult<@NonNull PunishmentType> parse(@NonNull org.incendo.cloud.context.CommandContext<@NonNull NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
      Specified by:
      parse in interface org.incendo.cloud.parser.ArgumentParser<NecrifyUser,PunishmentType>
    • suggestionProvider

      public @NonNull org.incendo.cloud.suggestion.SuggestionProvider<NecrifyUser> suggestionProvider()
      Specified by:
      suggestionProvider in interface org.incendo.cloud.parser.ArgumentParser<NecrifyUser,PunishmentType>
      Specified by:
      suggestionProvider in interface org.incendo.cloud.suggestion.SuggestionProviderHolder<NecrifyUser>