Class StandardCommandContextFactory<C>

    • Constructor Detail

      • StandardCommandContextFactory

        public StandardCommandContextFactory()
    • 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 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