Class PunishmentParser

java.lang.Object
de.jvstvshd.necrify.common.commands.PunishmentParser
All Implemented Interfaces:
org.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.punishment.Punishment>, org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.punishment.Punishment>, org.incendo.cloud.suggestion.SuggestionProviderHolder<de.jvstvshd.necrify.api.user.NecrifyUser>

public class PunishmentParser extends Object implements org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.punishment.Punishment>
  • 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
    PunishmentParser(de.jvstvshd.necrify.api.Necrify necrify)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<de.jvstvshd.necrify.api.punishment.Punishment>>
    parseFuture(@NonNull org.incendo.cloud.context.CommandContext<de.jvstvshd.necrify.api.user.NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
     

    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, suggestionProvider

    Methods inherited from interface org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser

    parse
  • Constructor Details

    • PunishmentParser

      public PunishmentParser(de.jvstvshd.necrify.api.Necrify necrify)
  • Method Details

    • parseFuture

      public @NonNull CompletableFuture<@NonNull org.incendo.cloud.parser.ArgumentParseResult<de.jvstvshd.necrify.api.punishment.Punishment>> parseFuture(@NonNull org.incendo.cloud.context.CommandContext<de.jvstvshd.necrify.api.user.NecrifyUser> commandContext, @NonNull org.incendo.cloud.context.CommandInput commandInput)
      Specified by:
      parseFuture in interface org.incendo.cloud.parser.ArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.punishment.Punishment>
      Specified by:
      parseFuture in interface org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser<de.jvstvshd.necrify.api.user.NecrifyUser,de.jvstvshd.necrify.api.punishment.Punishment>