Interface CommandContextFactory<C>

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

public interface CommandContextFactory<C>
Factory for CommandContext instances
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull CommandContext<C>
    create​(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
    Deprecated.
    Provide a command manager instead of a caption registry
    @NonNull CommandContext<C>
    create​(boolean suggestions, @NonNull C sender, @NonNull CommandManager<C> commandManager)
    Create a new command context
  • Method Details

    • create

      @Deprecated @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
      Deprecated.
      Provide a command manager instead of a caption registry
      Create a new command context
      Parameters:
      suggestions - Whether or not the sender is requesting suggestions
      sender - Command sender
      captionRegistry - Caption registry
      Returns:
      Command context
    • create

      @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CommandManager<C> commandManager)
      Create a new command context
      Parameters:
      suggestions - Whether or not the sender is requesting suggestions
      sender - Command sender
      commandManager - Command manager
      Returns:
      Command context
      Since:
      1.3.0