Interface CommandPreProcessor<S extends Source>

Type Parameters:
S - the command sender valueType
All Superinterfaces:
CommandProcessor<S>
All Known Implementing Classes:
UsageCooldownProcessor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommandPreProcessor<S extends Source> extends CommandProcessor<S>
Defines a functional interface that processes a Context BEFORE the resolving of the arguments into values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(Imperat<S> imperat, Context<S> context, CommandUsage<S> usage)
    Processes context BEFORE the resolving operation.

    Methods inherited from interface studio.mevera.imperat.command.processors.CommandProcessor

    priority
  • Method Details

    • process

      void process(Imperat<S> imperat, Context<S> context, CommandUsage<S> usage) throws ImperatException
      Processes context BEFORE the resolving operation.
      Parameters:
      imperat - the api
      context - the context
      usage - The usage detected
      Throws:
      ImperatException - the exception to throw if something happens