Package net.pl3x.map.core.command
Interface CommandHandler
public interface CommandHandler
Represents the command handler.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull cloud.commandframework.Command.Builder<@NotNull Sender>@NotNull cloud.commandframework.CommandManager<@NotNull Sender>Get the command manager.@NotNull cloud.commandframework.Command.Builder<@NotNull Sender>getRoot()Get the root command.default voidregisterSubcommand(@NotNull UnaryOperator<@NotNull cloud.commandframework.Command.Builder<@NotNull Sender>> builder) Register a new subcommand.default voiddefault void
-
Method Details
-
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
-
registerSubcommands
default void registerSubcommands()
-