Interface CommandPreprocessingContext<C>
- Type Parameters:
C- command sender type
Context for
command preprocessors.-
Method Summary
Modifier and TypeMethodDescriptionReturns the command context.Returns the original input.static <C> @NonNull CommandPreprocessingContext<C> of(@NonNull CommandContext<C> commandContext, @NonNull CommandInput commandInput) Returns a new preprocessing context.
-
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 contextcommandInput- 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
-