Package cloud.commandframework.context
Class StandardCommandContextFactory<C>
java.lang.Object
cloud.commandframework.context.StandardCommandContextFactory<C>
- All Implemented Interfaces:
CommandContextFactory<C>
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
public final class StandardCommandContextFactory<C>
extends Object
implements CommandContextFactory<C>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull CommandContext<C>
create
(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry) Create a new command context@NonNull CommandContext<C>
create
(boolean suggestions, @NonNull C sender, @NonNull CommandManager<C> commandManager) Create a new command context
-
Constructor Details
-
StandardCommandContextFactory
public StandardCommandContextFactory()
-
-
Method Details
-
create
public @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CommandManager<C> commandManager) Description copied from interface:CommandContextFactory
Create a new command context- Specified by:
create
in interfaceCommandContextFactory<C>
- Parameters:
suggestions
- Whether or not the sender is requesting suggestionssender
- Command sendercommandManager
- Command manager- Returns:
- Command context