Class StandardCommandContextFactory<C>

    • Method Summary

      Modifier and Type Method Description
      CommandContext<C> create​(boolean suggestions, @NonNull C sender, @NonNull CaptionRegistry<C> captionRegistry)
      Construct a new command context
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StandardCommandContextFactory

        public StandardCommandContextFactory()
    • Method Detail

      • create

        public CommandContext<C> create​(boolean suggestions,
                                        @NonNull C sender,
                                        @NonNull CaptionRegistry<C> captionRegistry)
        Construct 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:
        Created context