PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\permission\PermissionAttachment Class Reference
+ Collaboration diagram for pocketmine\permission\PermissionAttachment:

Public Member Functions

 __construct (private Plugin $plugin)
 
 clearPermissions ()
 
 getPermissions ()
 
 getPlugin ()
 
 getSubscribers ()
 
 setPermission (Permission|string $name, bool $value)
 
 setPermissions (array $permissions)
 
 subscribePermissible (PermissibleInternal $permissible)
 
 unsetPermission (Permission|string $name)
 
 unsetPermissions (array $permissions)
 
 unsubscribePermissible (PermissibleInternal $permissible)
 

Detailed Description

Definition at line 30 of file PermissionAttachment.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\permission\PermissionAttachment::__construct ( private Plugin $plugin)
Exceptions
PluginException

Definition at line 43 of file PermissionAttachment.php.

Member Function Documentation

◆ clearPermissions()

pocketmine\permission\PermissionAttachment::clearPermissions ( )

Definition at line 74 of file PermissionAttachment.php.

◆ getPermissions()

pocketmine\permission\PermissionAttachment::getPermissions ( )
Returns
bool[]

Definition at line 64 of file PermissionAttachment.php.

◆ getPlugin()

pocketmine\permission\PermissionAttachment::getPlugin ( )

Definition at line 51 of file PermissionAttachment.php.

◆ getSubscribers()

pocketmine\permission\PermissionAttachment::getSubscribers ( )
Returns
PermissibleInternal[] @phpstan-return array<int, PermissibleInternal>

Definition at line 59 of file PermissionAttachment.php.

◆ setPermission()

pocketmine\permission\PermissionAttachment::setPermission ( Permission|string $name,
bool $value )

Definition at line 99 of file PermissionAttachment.php.

◆ setPermissions()

pocketmine\permission\PermissionAttachment::setPermissions ( array $permissions)
Parameters
bool[]$permissions

Definition at line 82 of file PermissionAttachment.php.

◆ subscribePermissible()

pocketmine\permission\PermissionAttachment::subscribePermissible ( PermissibleInternal $permissible)

Definition at line 131 of file PermissionAttachment.php.

◆ unsetPermission()

pocketmine\permission\PermissionAttachment::unsetPermission ( Permission|string $name)

Definition at line 120 of file PermissionAttachment.php.

◆ unsetPermissions()

pocketmine\permission\PermissionAttachment::unsetPermissions ( array $permissions)
Parameters
string[]$permissions

Definition at line 92 of file PermissionAttachment.php.

◆ unsubscribePermissible()

pocketmine\permission\PermissionAttachment::unsubscribePermissible ( PermissibleInternal $permissible)

Definition at line 138 of file PermissionAttachment.php.


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