Interface CommandContextFactory<C>

Type Parameters:
C - Command sender
All Known Implementing Classes:
StandardCommandContextFactory

@API(status=STABLE) public interface CommandContextFactory<C>
Factory for CommandContext instances
  • Method Summary

    Modifier and Type
    Method
    Description
    create(boolean suggestions, @NonNull C sender)
    Creates a new command context.
  • Method Details

    • create

      @API(status=STABLE) @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender)
      Creates a new command context.
      Parameters:
      suggestions - whether we're generating suggestions
      sender - the command sender
      Returns:
      Command context