Interface Context<S extends Source>

Type Parameters:
S - the command sender valueType
All Known Subinterfaces:
ExecutionContext<S>, SuggestionContext<S>

@AvailableSince("1.0.0") public interface Context<S extends Source>
Represents the processes context of a command entered by Source
  • Method Details

    • imperat

      Imperat<S> imperat()
      Returns:
      imperat's instance
    • imperatConfig

      ImperatConfig<S> imperatConfig()
      Returns:
      the config for imperat
    • command

      @NotNull @NotNull Command<S> command()
      Returns:
      The Command owning this context.
    • source

      @NotNull S source()
      Returns:
      the Source of the command
      See Also:
    • label

      @NotNull @NotNull String label()
      Returns:
      the root command entered by the Source
    • arguments

      ArgumentInput arguments()
      Returns:
      the arguments entered by the Source
      See Also: