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
Modifier and Type Method Description CommandContext<C>create(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)Construct a new command context
-
-
-
Method Detail
-
create
public CommandContext<C> create(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
Construct a new command context- Specified by:
createin interfaceCommandContextFactory<C>- Parameters:
suggestions- Whether or not the sender is requesting suggestionssender- Command sendercaptionRegistry- Caption registry- Returns:
- Created context
-
-