Class CommandManager
- java.lang.Object
-
- com.alessiodp.core.common.commands.CommandManager
-
public abstract class CommandManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList<String>commandOrderprotected CommandUtilscommandUtilsprotected List<ADPMainCommand>mainCommandsprotected LinkedHashMap<ADPCommand,ADPExecutableCommand>orderedCommandsprotected @NotNull ADPPluginplugin
-
Constructor Summary
Constructors Constructor Description CommandManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @NotNull CommandDatainitializeCommandData()Initialize a command datavoidorderCommands()Order commandsabstract voidprepareCommands()Prepare commands: initialize enums and utilsabstract voidregisterCommands()Register all commands: add them into mainExecutorsvoidsetup()Setup commandsvoidsetupCommands()Setup commands and register them for the server
-
-
-
Field Detail
-
plugin
@NotNull protected final @NotNull ADPPlugin plugin
-
mainCommands
protected List<ADPMainCommand> mainCommands
-
orderedCommands
protected LinkedHashMap<ADPCommand,ADPExecutableCommand> orderedCommands
-
commandUtils
protected CommandUtils commandUtils
-
commandOrder
protected LinkedList<String> commandOrder
-
-
Method Detail
-
setup
public final void setup()
Setup commands
-
prepareCommands
public abstract void prepareCommands()
Prepare commands: initialize enums and utils
-
registerCommands
public abstract void registerCommands()
Register all commands: add them into mainExecutors
-
setupCommands
public void setupCommands()
Setup commands and register them for the server
-
orderCommands
public void orderCommands()
Order commands
-
initializeCommandData
@NotNull public abstract @NotNull CommandData initializeCommandData()
Initialize a command data- Returns:
- a new command data
-
-