Package cloud.commandframework.context
Interface CommandContextFactory<C>
-
- Type Parameters:
C
- Command sender
- All Known Implementing Classes:
StandardCommandContextFactory
public interface CommandContextFactory<C>
Factory forCommandContext
instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods 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 Detail
-
create
@Deprecated @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
Deprecated.Provide a command manager instead of a caption registryCreate a new command context- Parameters:
suggestions
- Whether or not the sender is requesting suggestionssender
- Command sendercaptionRegistry
- 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 suggestionssender
- Command sendercommandManager
- Command manager- Returns:
- Command context
- Since:
- 1.3.0
-
-