PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\mcpe\protocol\types\entity\AttributeModifier Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\entity\AttributeModifier:

Public Member Functions

 __construct (private string $id, private string $name, private float $amount, private int $operation, private int $operand, private bool $serializable)
 
 getAmount ()
 
 getId ()
 
 getName ()
 
 getOperand ()
 
 getOperation ()
 
 isSerializable ()
 
 write (PacketSerializer $out)
 

Static Public Member Functions

static read (PacketSerializer $in)
 

Detailed Description

Definition at line 19 of file AttributeModifier.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::__construct ( private string  $id,
private string  $name,
private float  $amount,
private int  $operation,
private int  $operand,
private bool  $serializable 
)

Member Function Documentation

◆ getAmount()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::getAmount ( )

Definition at line 38 of file AttributeModifier.php.

◆ getId()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::getId ( )

Definition at line 34 of file AttributeModifier.php.

◆ getName()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::getName ( )

Definition at line 36 of file AttributeModifier.php.

◆ getOperand()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::getOperand ( )

Definition at line 42 of file AttributeModifier.php.

◆ getOperation()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::getOperation ( )

Definition at line 40 of file AttributeModifier.php.

◆ isSerializable()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::isSerializable ( )

Definition at line 44 of file AttributeModifier.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::read ( PacketSerializer  $in)
static

Definition at line 46 of file AttributeModifier.php.

◆ write()

pocketmine\network\mcpe\protocol\types\entity\AttributeModifier::write ( PacketSerializer  $out)

Definition at line 57 of file AttributeModifier.php.


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