Package pro.gravit.utils.command
Class BaseCommandCategory
- java.lang.Object
-
- pro.gravit.utils.command.BaseCommandCategory
-
- All Implemented Interfaces:
CommandCategory
public class BaseCommandCategory extends java.lang.Object implements CommandCategory
-
-
Constructor Summary
Constructors Constructor Description BaseCommandCategory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Command>commandsMap()CommandfindCommand(java.lang.String name)voidregisterCommand(java.lang.String name, Command command)CommandunregisterCommand(java.lang.String name)
-
-
-
Method Detail
-
registerCommand
public void registerCommand(java.lang.String name, Command command)- Specified by:
registerCommandin interfaceCommandCategory
-
unregisterCommand
public Command unregisterCommand(java.lang.String name)
- Specified by:
unregisterCommandin interfaceCommandCategory
-
findCommand
public Command findCommand(java.lang.String name)
- Specified by:
findCommandin interfaceCommandCategory
-
commandsMap
public java.util.Map<java.lang.String,Command> commandsMap()
- Specified by:
commandsMapin interfaceCommandCategory
-
-