Class MineBootCommand
- java.lang.Object
-
- com.github.sundev79.MineBootFramework.MineBootShell.MineBootCommand
-
- Direct Known Subclasses:
MineBootAboutShellInfoCommand,MineBootCdCommand,MineBootHelpCommand,MineBootMkdirCommand,MineBootPwdCommand,MineBootRmCommand
public class MineBootCommand extends Object
-
-
Constructor Summary
Constructors Constructor Description MineBootCommand(String cmdName, MineBootShellCommandType cmdType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<String>getCommandArgs()StringgetCommandDetails()StringgetCommandName()static HashMap<String,MineBootCommand>getCommands()MineBootShellCommandTypegetCommandType()com.github.sundev79.MineBootFramework.MineBootframework.api.events.MineBootEventHandlergetEventHandler()voidlaunchCommand()static voidregisterCommand(MineBootCommand command)voidsetCommandArgs(ArrayList<String> args)voidsetCommandDetails(String details)voidsetCommandName(String commandName)voidsetCommandType(MineBootShellCommandType commandType)voidsetEventHandler(com.github.sundev79.MineBootFramework.MineBootframework.api.events.MineBootEventHandler eventHandler)static voidunregisterAllCommands()static voidunregisterCommand(MineBootCommand command)
-
-
-
Constructor Detail
-
MineBootCommand
public MineBootCommand(String cmdName, MineBootShellCommandType cmdType)
-
-
Method Detail
-
launchCommand
public void launchCommand()
-
getCommandDetails
public String getCommandDetails()
-
setCommandDetails
public void setCommandDetails(String details)
-
unregisterCommand
public static void unregisterCommand(MineBootCommand command)
-
unregisterAllCommands
public static void unregisterAllCommands()
-
registerCommand
public static void registerCommand(MineBootCommand command)
-
getCommands
public static HashMap<String,MineBootCommand> getCommands()
-
getEventHandler
public com.github.sundev79.MineBootFramework.MineBootframework.api.events.MineBootEventHandler getEventHandler()
-
setEventHandler
public void setEventHandler(com.github.sundev79.MineBootFramework.MineBootframework.api.events.MineBootEventHandler eventHandler)
-
setCommandName
public void setCommandName(String commandName)
-
getCommandName
public String getCommandName()
-
getCommandType
public MineBootShellCommandType getCommandType()
-
setCommandType
public void setCommandType(MineBootShellCommandType commandType)
-
-