Interface CommandPreprocessingContext<C>

Type Parameters:
C - command sender type

@Immutable @API(status=STABLE) public interface CommandPreprocessingContext<C>
  • Method Details

    • of

      static <C> @NonNull CommandPreprocessingContext<C> of(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput)
      Returns a new preprocessing context.
      Type Parameters:
      C - command sender type
      Parameters:
      commandContext - command context
      commandInput - user-supplied input, possibly modified by prior preprocessors
      Returns:
      the context instance
    • commandContext

      @NonNull CommandContext<@NonNull C> commandContext()
      Returns the command context.
      Returns:
      command context
    • commandInput

      @NonNull CommandInput commandInput()
      Returns the original input.

      All changes will persist and will be used during parsing.

      Returns:
      command input