Package net.pl3x.map.core.command
Interface CommandHandler
public interface CommandHandler
Represents the command handler.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull org.incendo.cloud.Command.Builder
<@NotNull Sender> @NotNull org.incendo.cloud.CommandManager
<@NotNull Sender> Get the command manager.@NotNull PlatformParsers
Get the platform parsers.@NotNull org.incendo.cloud.Command.Builder
<@NotNull Sender> getRoot()
Get the root command.default void
registerSubcommand
(@NotNull UnaryOperator<@NotNull org.incendo.cloud.Command.Builder<@NotNull Sender>> builder) Register a new subcommand.default void
default void
-
Method Details
-
getManager
Get the command manager.- Returns:
- command manager
-
getPlatformParsers
Get the platform parsers.- Returns:
- platform parsers
-
getRoot
@NotNull org.incendo.cloud.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 org.incendo.cloud.Command.Builder<@NotNull Sender>> builder) Register a new subcommand.- Parameters:
builder
- command builder
-
buildRoot
-
registerSubcommands
default void registerSubcommands()
-