YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.command.CommandHandler Class Reference
Inheritance diagram for net.minecraft.command.CommandHandler:
net.minecraft.command.ICommandManager net.minecraft.command.ServerCommandManager

Public Member Functions

int executeCommand (ICommandSender par1ICommandSender, String par2Str)
 
ICommand registerCommand (ICommand par1ICommand)
 
List getPossibleCommands (ICommandSender par1ICommandSender, String par2Str)
 
List getPossibleCommands (ICommandSender par1ICommandSender)
 
Map getCommands ()
 

Member Function Documentation

int net.minecraft.command.CommandHandler.executeCommand ( ICommandSender  par1ICommandSender,
String  par2Str 
)
Map net.minecraft.command.CommandHandler.getCommands ( )

returns a map of string to commads. All commands are returned, not just ones which someone has permission to use.

Implements net.minecraft.command.ICommandManager.

List net.minecraft.command.CommandHandler.getPossibleCommands ( ICommandSender  par1ICommandSender,
String  par2Str 
)

Performs a "begins with" string match on each token in par2. Only returns commands that par1 can use.

Implements net.minecraft.command.ICommandManager.

List net.minecraft.command.CommandHandler.getPossibleCommands ( ICommandSender  par1ICommandSender)

returns all commands that the commandSender can use

Implements net.minecraft.command.ICommandManager.

ICommand net.minecraft.command.CommandHandler.registerCommand ( ICommand  par1ICommand)

adds the command and any aliases it has to the internal map of available commands


The documentation for this class was generated from the following file: