PocketMine-MP 5.30.1 git-04494e845c8ec9ae174604b6dde6c1cc6c22953a
|
Public Attributes | |
const | ADD = 0 |
const | CAP = 3 |
const | MULTIPLY_BASE = 1 |
const | MULTIPLY_TOTAL = 2 |
Affects how the modifier value is applied to the target attribute. These operations are described on the Minecraft Wiki at https://minecraft.fandom.com/wiki/Attribute
These operations are listed in the order that they are applied in.
Definition at line 23 of file AttributeModifierOperation.php.
const pocketmine\network\mcpe\protocol\types\entity\AttributeModifierOperation::ADD = 0 |
Adds the modifier value to the attribute's base value.
Definition at line 30 of file AttributeModifierOperation.php.
const pocketmine\network\mcpe\protocol\types\entity\AttributeModifierOperation::CAP = 3 |
Limits the result value. If the result value is greater than the limit, it is set to the limit.
Definition at line 44 of file AttributeModifierOperation.php.
const pocketmine\network\mcpe\protocol\types\entity\AttributeModifierOperation::MULTIPLY_BASE = 1 |
Multiplies the value by (1 + x), where x is the sum of all MULTIPLY_BASE modifiers' amounts. Multiple modifiers of this type have additive effects on each other.
Definition at line 35 of file AttributeModifierOperation.php.
const pocketmine\network\mcpe\protocol\types\entity\AttributeModifierOperation::MULTIPLY_TOTAL = 2 |
Each modifier of this type multiplies the value by (1 + x), where x is the current modifier's value. Multiple modifiers of this type have multiplicative effects on each other.
Definition at line 40 of file AttributeModifierOperation.php.