Package org.incendo.cloud.execution
Interface CommandResult<C>
- Type Parameters:
C- command sender type
The result of a command execution.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the command context.static <C> @NonNull CommandResult<C> of(@NonNull CommandContext<C> context) Creates aCommandResultusing the givencontext.
-
Method Details
-
of
Creates aCommandResultusing the givencontext.- Type Parameters:
C- command sender type- Parameters:
context- command context- Returns:
- the result instance
-
commandContext
@NonNull CommandContext<C> commandContext()Returns the command context.- Returns:
- the command context
-