|
PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
|
Inheritance diagram for pocketmine\command\ClosureCommand:
Collaboration diagram for pocketmine\command\ClosureCommand:Public Member Functions | |
| __construct (string $name, \Closure $execute, array $permissions, Translatable|string $description="", Translatable|string|null $usageMessage=null, array $aliases=[]) | |
| __toString () | |
| execute (CommandSender $sender, string $commandLabel, array $args) | |
| getAliases () | |
| getDescription () | |
| getLabel () | |
| getName () | |
| getPermissionMessage () | |
| getPermissions () | |
| getUsage () | |
| isRegistered () | |
| register (CommandMap $commandMap) | |
| setAliases (array $aliases) | |
| setDescription (Translatable|string $description) | |
| setLabel (string $name) | |
| setPermission (?string $permission) | |
| setPermissionMessage (string $permissionMessage) | |
| setPermissions (array $permissions) | |
| setUsage (Translatable|string $usage) | |
| testPermission (CommandSender $target, ?string $permission=null) | |
| testPermissionSilent (CommandSender $target, ?string $permission=null) | |
| unregister (CommandMap $commandMap) | |
Static Public Member Functions | |
| static | broadcastCommandMessage (CommandSender $source, Translatable|string $message, bool $sendToSource=true) |
Protected Attributes | |
| Translatable string | $description = "" |
| Translatable string | $usageMessage |
@phpstan-type Execute \Closure(CommandSender $sender, Command $command, string $commandLabel, list<string> $args) : mixed
Definition at line 32 of file ClosureCommand.php.
| pocketmine\command\ClosureCommand::__construct | ( | string | $name, |
| \Closure | $execute, | ||
| array | $permissions, | ||
| Translatable|string | $description = "", | ||
| Translatable|string|null | $usageMessage = null, | ||
| array | $aliases = [] ) |
| string[] | $permissions | @phpstan-param Execute $execute |
Definition at line 40 of file ClosureCommand.php.
References pocketmine\command\ClosureCommand\execute(), and pocketmine\command\Command\setPermissions().
Here is the call graph for this function:
|
inherited |
Definition at line 255 of file Command.php.
|
staticinherited |
Definition at line 237 of file Command.php.
| pocketmine\command\ClosureCommand::execute | ( | CommandSender | $sender, |
| string | $commandLabel, | ||
| array | $args ) |
| string[] | $args | @phpstan-param list<string> $args |
| CommandException |
Reimplemented from pocketmine\command\Command.
Definition at line 57 of file ClosureCommand.php.
References pocketmine\command\ClosureCommand\execute().
Referenced by pocketmine\command\ClosureCommand\__construct(), and pocketmine\command\ClosureCommand\execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
Definition at line 197 of file Command.php.
|
inherited |
Definition at line 205 of file Command.php.
|
inherited |
Definition at line 145 of file Command.php.
|
inherited |
Definition at line 92 of file Command.php.
|
inherited |
Definition at line 201 of file Command.php.
|
inherited |
Definition at line 99 of file Command.php.
|
inherited |
Definition at line 209 of file Command.php.
|
inherited |
Definition at line 189 of file Command.php.
|
inherited |
Registers the command into a Command map
Definition at line 163 of file Command.php.
|
inherited |
| string[] | $aliases | @phpstan-param list<string> $aliases |
Definition at line 217 of file Command.php.
Referenced by pocketmine\command\Command\__construct().
Here is the caller graph for this function:
|
inherited |
Definition at line 225 of file Command.php.
|
inherited |
Definition at line 149 of file Command.php.
|
inherited |
Definition at line 116 of file Command.php.
|
inherited |
Definition at line 229 of file Command.php.
|
inherited |
| string[] | $permissions |
Definition at line 106 of file Command.php.
Referenced by pocketmine\command\ClosureCommand\__construct().
Here is the caller graph for this function:
|
inherited |
Definition at line 233 of file Command.php.
|
inherited |
Definition at line 120 of file Command.php.
|
inherited |
Definition at line 134 of file Command.php.
|
inherited |
Definition at line 173 of file Command.php.
|
protectedinherited |
Definition at line 63 of file Command.php.
|
protectedinherited |
Definition at line 65 of file Command.php.