Package net.minecraft.src
Class CommandHandler
java.lang.Object
net.minecraft.src.CommandHandler
- All Implemented Interfaces:
ICommandManager
- Direct Known Subclasses:
ServerCommandManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexecuteCommand(ICommandSender par1ICommandSender, String par2Str) returns a map of string to commads.getPossibleCommands(ICommandSender par1ICommandSender) returns all commands that the commandSender can usegetPossibleCommands(ICommandSender par1ICommandSender, String par2Str) Performs a "begins with" string match on each token in par2.registerCommand(ICommand par1ICommand) adds the command and any aliases it has to the internal map of available commands
-
Constructor Details
-
CommandHandler
public CommandHandler()
-
-
Method Details
-
executeCommand
- Specified by:
executeCommandin interfaceICommandManager
-
registerCommand
adds the command and any aliases it has to the internal map of available commands -
getPossibleCommands
Performs a "begins with" string match on each token in par2. Only returns commands that par1 can use.- Specified by:
getPossibleCommandsin interfaceICommandManager
-
getPossibleCommands
returns all commands that the commandSender can use- Specified by:
getPossibleCommandsin interfaceICommandManager
-
getCommands
returns a map of string to commads. All commands are returned, not just ones which someone has permission to use.- Specified by:
getCommandsin interfaceICommandManager
-