Interface CommandHandler


public interface CommandHandler
Represents the command handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull cloud.commandframework.Command.Builder<@NotNull Sender>
     
    @NotNull cloud.commandframework.CommandManager<@NotNull Sender>
    Get the command manager.
    @NotNull cloud.commandframework.Command.Builder<@NotNull Sender>
    Get the root command.
    default void
    registerSubcommand(@NotNull UnaryOperator<@NotNull cloud.commandframework.Command.Builder<@NotNull Sender>> builder)
    Register a new subcommand.
    default void
     
    default void
     
  • Method Details

    • getManager

      @NotNull @NotNull cloud.commandframework.CommandManager<@NotNull Sender> getManager()
      Get the command manager.
      Returns:
      command manager
    • getRoot

      @NotNull cloud.commandframework.Command.Builder<@NotNull Sender> getRoot()
      Get the root command.
      Returns:
      the root command
    • setupExceptionHandlers

      default void setupExceptionHandlers()
    • registerSubcommand

      default void registerSubcommand(@NotNull @NotNull UnaryOperator<@NotNull cloud.commandframework.Command.Builder<@NotNull Sender>> builder)
      Register a new subcommand.
      Parameters:
      builder - command builder
    • buildRoot

      default @NotNull cloud.commandframework.Command.Builder<@NotNull Sender> buildRoot()
    • registerSubcommands

      default void registerSubcommands()