Class CommandResult<C>

  • Type Parameters:
    C - Command sender type

    public class CommandResult<C>
    extends java.lang.Object
    The result of a command execution
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandResult​(@NonNull CommandContext<C> context)
      Construct a new command result instance
    • Method Summary

      Modifier and Type Method Description
      @NonNull CommandContext<C> getCommandContext()
      Get the command context
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandResult

        public CommandResult​(@NonNull CommandContext<C> context)
        Construct a new command result instance
        Parameters:
        context - Command context
    • Method Detail

      • getCommandContext

        public @NonNull CommandContext<C> getCommandContext()
        Get the command context
        Returns:
        Command context