PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute:

Public Member Functions

 __construct (private string $id, private float $min, private float $max, private float $current, private float $defaultMin, private float $defaultMax, private float $default, private array $modifiers)
 
 getCurrent ()
 
 getDefault ()
 
 getDefaultMax ()
 
 getDefaultMin ()
 
 getId ()
 
 getMax ()
 
 getMin ()
 
 getModifiers ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Detailed Description

Definition at line 24 of file UpdateAttribute.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::__construct ( private string $id,
private float $min,
private float $max,
private float $current,
private float $defaultMin,
private float $defaultMax,
private float $default,
private array $modifiers )
Parameters
AttributeModifier[]$modifiers

Definition at line 28 of file UpdateAttribute.php.

Member Function Documentation

◆ getCurrent()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getCurrent ( )

Definition at line 45 of file UpdateAttribute.php.

◆ getDefault()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getDefault ( )

Definition at line 51 of file UpdateAttribute.php.

◆ getDefaultMax()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getDefaultMax ( )

Definition at line 49 of file UpdateAttribute.php.

◆ getDefaultMin()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getDefaultMin ( )

Definition at line 47 of file UpdateAttribute.php.

◆ getId()

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

Definition at line 39 of file UpdateAttribute.php.

◆ getMax()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getMax ( )

Definition at line 43 of file UpdateAttribute.php.

◆ getMin()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getMin ( )

Definition at line 41 of file UpdateAttribute.php.

◆ getModifiers()

pocketmine\network\mcpe\protocol\types\entity\UpdateAttribute::getModifiers ( )
Returns
AttributeModifier[]

Definition at line 56 of file UpdateAttribute.php.

◆ read()

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

Definition at line 58 of file UpdateAttribute.php.

◆ write()

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

Definition at line 75 of file UpdateAttribute.php.


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