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 Details

    • StandardCommandContextFactory

      public StandardCommandContextFactory()
  • Method Details

    • 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 interface CommandContextFactory<C>
      Parameters:
      suggestions - Whether or not the sender is requesting suggestions
      sender - Command sender
      captionRegistry - 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 interface CommandContextFactory<C>
      Parameters:
      suggestions - Whether or not the sender is requesting suggestions
      sender - Command sender
      commandManager - Command manager
      Returns:
      Command context