PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
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 (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Detailed Description

Definition at line 22 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 )
See also
AttributeModifierOperation
AttributeModifierTargetOperand

Definition at line 28 of file AttributeModifier.php.

Member Function Documentation

◆ getAmount()

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

Definition at line 41 of file AttributeModifier.php.

◆ getId()

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

Definition at line 37 of file AttributeModifier.php.

◆ getName()

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

Definition at line 39 of file AttributeModifier.php.

◆ getOperand()

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

Definition at line 45 of file AttributeModifier.php.

◆ getOperation()

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

Definition at line 43 of file AttributeModifier.php.

◆ isSerializable()

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

Definition at line 47 of file AttributeModifier.php.

◆ read()

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

Definition at line 49 of file AttributeModifier.php.

◆ write()

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

Definition at line 60 of file AttributeModifier.php.


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