Class RoutedCommandExecutor
- java.lang.Object
-
- io.manebot.command.executor.routed.RoutedCommandExecutor
-
- All Implemented Interfaces:
CommandExecutor
public abstract class RoutedCommandExecutor extends java.lang.Object implements CommandExecutor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RoutedCommandExecutor.Route
-
Constructor Summary
Constructors Constructor Description RoutedCommandExecutor()
-
Method Summary
Modifier and Type Method Description void
execute(CommandSender sender, java.lang.String label, java.lang.String[] args)
java.util.List<java.lang.String>
getHelp(CommandSender sender, java.lang.String label, java.lang.String[] args)
protected RoutedCommandExecutor.Route
route(java.lang.String label, CommandExecutor executor)
protected RoutedCommandExecutor.Route
setDefaultRoute(CommandExecutor executor)
protected RoutedCommandExecutor.Route
setNullRoute(CommandExecutor executor)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.manebot.command.executor.CommandExecutor
getDescription, isBuffered
-
-
-
-
Method Detail
-
route
protected RoutedCommandExecutor.Route route(java.lang.String label, CommandExecutor executor)
-
setDefaultRoute
protected RoutedCommandExecutor.Route setDefaultRoute(CommandExecutor executor)
-
setNullRoute
protected RoutedCommandExecutor.Route setNullRoute(CommandExecutor executor)
-
getHelp
public java.util.List<java.lang.String> getHelp(CommandSender sender, java.lang.String label, java.lang.String[] args) throws CommandExecutionException
- Specified by:
getHelp
in interfaceCommandExecutor
- Throws:
CommandExecutionException
-
execute
public final void execute(CommandSender sender, java.lang.String label, java.lang.String[] args) throws CommandExecutionException
- Specified by:
execute
in interfaceCommandExecutor
- Throws:
CommandExecutionException
-
-