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