PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\command\CommandMap Interface Reference
+ Inheritance diagram for pocketmine\command\CommandMap:
+ Collaboration diagram for pocketmine\command\CommandMap:

Public Member Functions

 registerAll ($fallbackPrefix, array $commands)
 
 register ($fallbackPrefix, Command $command, $label=null)
 
 dispatch (CommandSender $sender, $cmdLine)
 
 clearCommands ()
 
 getCommand ($name)
 

Detailed Description

Definition at line 25 of file CommandMap.php.

Member Function Documentation

pocketmine\command\CommandMap::clearCommands ( )
Returns
void

Implemented in pocketmine\command\SimpleCommandMap.

pocketmine\command\CommandMap::dispatch ( CommandSender  $sender,
  $cmdLine 
)
Parameters
CommandSender$sender
string$cmdLine
Returns
boolean

Implemented in pocketmine\command\SimpleCommandMap.

pocketmine\command\CommandMap::getCommand (   $name)
Parameters
string$name
Returns
Command

Implemented in pocketmine\command\SimpleCommandMap.

pocketmine\command\CommandMap::register (   $fallbackPrefix,
Command  $command,
  $label = null 
)
Parameters
string$fallbackPrefix
Command$command
string$label

Implemented in pocketmine\command\SimpleCommandMap.

pocketmine\command\CommandMap::registerAll (   $fallbackPrefix,
array  $commands 
)
Parameters
string$fallbackPrefix
Command[]$commands

Implemented in pocketmine\command\SimpleCommandMap.


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