Package cloud.commandframework.context
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 TypeMethodDescription@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
@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 suggestionssender
- Command sendercommandManager
- Command manager- Returns:
- Command context
- Since:
- 1.3.0