PocketMine-MP 5.19.1 git-f1b1a7022d7dc67d012d8891bc4c23c2652c825e
|
Public Member Functions | |
__construct (private string $name, Translatable|string|null $description=null, private array $children=[]) | |
addChild (string $name, bool $value) | |
getChildren () | |
getDescription () | |
getName () | |
getPermissibles () | |
recalculatePermissibles () | |
removeChild (string $name) | |
setDescription (Translatable|string $value) | |
Represents a permission
Definition at line 35 of file Permission.php.
pocketmine\permission\Permission::__construct | ( | private string | $name, |
Translatable|string|null | $description = null , |
||
private array | $children = [] |
||
) |
Creates a new Permission object to be attached to Permissible objects
bool[] | $children | @phpstan-param array<string, bool> $children |
Definition at line 44 of file Permission.php.
pocketmine\permission\Permission::addChild | ( | string | $name, |
bool | $value | ||
) |
Definition at line 89 of file Permission.php.
pocketmine\permission\Permission::getChildren | ( | ) |
Definition at line 62 of file Permission.php.
pocketmine\permission\Permission::getDescription | ( | ) |
Definition at line 66 of file Permission.php.
pocketmine\permission\Permission::getName | ( | ) |
Definition at line 54 of file Permission.php.
pocketmine\permission\Permission::getPermissibles | ( | ) |
Definition at line 77 of file Permission.php.
pocketmine\permission\Permission::recalculatePermissibles | ( | ) |
Definition at line 81 of file Permission.php.
pocketmine\permission\Permission::removeChild | ( | string | $name | ) |
Definition at line 94 of file Permission.php.
pocketmine\permission\Permission::setDescription | ( | Translatable|string | $value | ) |
Definition at line 70 of file Permission.php.