PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
pocketmine\network\mcpe\protocol\types\AbilitiesData Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\AbilitiesData:

Public Member Functions

 __construct (private int $commandPermission, private int $playerPermission, private int $targetActorUniqueId, private array $abilityLayers)
 
 encode (PacketSerializer $out)
 
 getAbilityLayers ()
 
 getCommandPermission ()
 
 getPlayerPermission ()
 
 getTargetActorUniqueId ()
 

Static Public Member Functions

static decode (PacketSerializer $in)
 

Detailed Description

Definition at line 20 of file AbilitiesData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\AbilitiesData::__construct ( private int  $commandPermission,
private int  $playerPermission,
private int  $targetActorUniqueId,
private array  $abilityLayers 
)
Parameters
AbilitiesLayer[]$abilityLayers@phpstan-param array<int, AbilitiesLayer> $abilityLayers

Definition at line 25 of file AbilitiesData.php.

Member Function Documentation

◆ decode()

static pocketmine\network\mcpe\protocol\types\AbilitiesData::decode ( PacketSerializer  $in)
static

Definition at line 44 of file AbilitiesData.php.

◆ encode()

pocketmine\network\mcpe\protocol\types\AbilitiesData::encode ( PacketSerializer  $out)

Definition at line 57 of file AbilitiesData.php.

◆ getAbilityLayers()

pocketmine\network\mcpe\protocol\types\AbilitiesData::getAbilityLayers ( )
Returns
AbilitiesLayer[] @phpstan-return array<int, AbilitiesLayer>

Definition at line 42 of file AbilitiesData.php.

◆ getCommandPermission()

pocketmine\network\mcpe\protocol\types\AbilitiesData::getCommandPermission ( )

Definition at line 32 of file AbilitiesData.php.

◆ getPlayerPermission()

pocketmine\network\mcpe\protocol\types\AbilitiesData::getPlayerPermission ( )

Definition at line 34 of file AbilitiesData.php.

◆ getTargetActorUniqueId()

pocketmine\network\mcpe\protocol\types\AbilitiesData::getTargetActorUniqueId ( )

Definition at line 36 of file AbilitiesData.php.


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