Package cloud.commandframework.context
Class StandardCommandContextFactory<C>
- java.lang.Object
-
- cloud.commandframework.context.StandardCommandContextFactory<C>
-
- All Implemented Interfaces:
CommandContextFactory<C>
public final class StandardCommandContextFactory<C> extends java.lang.Object implements CommandContextFactory<C>
-
-
Constructor Summary
Constructors Constructor Description StandardCommandContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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
-
-
-
Method Detail
-
create
public @NonNull CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
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 sendercaptionRegistry
- Caption registry- Returns:
- Command context
-
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
-
-