Interface CommandContext<T>

All Known Implementing Classes:
CommandContextImpl

public interface CommandContext<T>
  • Method Details

    • sender

      T sender()
    • getParsedArgument

      <V> CommandArgument<T,V> getParsedArgument(String id)
    • getArg

      default <V> V getArg(String id)
      Type Parameters:
      V - the type of the value of the argument with the specified id
      Returns:
      the value of the argument with the specified id
    • getArg

      default <V> V getArg(CommandArgumentSpec<T,V> arg)
      Type Parameters:
      V - the type of the value of the argument
      Parameters:
      arg - the argument whose value to return
      Returns:
      the value of the argument
    • getParsedArgument

      default <V> CommandArgument<T,V> getParsedArgument(CommandArgumentSpec<T,V> arg)
    • parsedArguments

      Map<String, CommandArgument<T,?>> parsedArguments()