public abstract class CommandHandler extends java.lang.Object implements ICommandManager
Constructor and Description |
---|
CommandHandler() |
Modifier and Type | Method and Description |
---|---|
int |
executeCommand(ICommandSender sender,
java.lang.String rawCommand) |
java.util.Map<java.lang.String,ICommand> |
getCommands() |
java.util.List<ICommand> |
getPossibleCommands(ICommandSender sender) |
protected abstract MinecraftServer |
getServer() |
java.util.List<java.lang.String> |
getTabCompletions(ICommandSender sender,
java.lang.String input,
BlockPos pos) |
ICommand |
registerCommand(ICommand command) |
protected boolean |
tryExecute(ICommandSender sender,
java.lang.String[] args,
ICommand command,
java.lang.String input) |
public int executeCommand(ICommandSender sender, java.lang.String rawCommand)
executeCommand
in interface ICommandManager
protected boolean tryExecute(ICommandSender sender, java.lang.String[] args, ICommand command, java.lang.String input)
protected abstract MinecraftServer getServer()
public java.util.List<java.lang.String> getTabCompletions(ICommandSender sender, java.lang.String input, @Nullable BlockPos pos)
getTabCompletions
in interface ICommandManager
public java.util.List<ICommand> getPossibleCommands(ICommandSender sender)
getPossibleCommands
in interface ICommandManager
public java.util.Map<java.lang.String,ICommand> getCommands()
getCommands
in interface ICommandManager