Definition at line 29 of file src/entity/Attribute.php.
◆ __construct()
| pocketmine\entity\Attribute::__construct |
( |
protected string | $id, |
|
|
protected float | $minValue, |
|
|
protected float | $maxValue, |
|
|
protected float | $defaultValue, |
|
|
protected bool | $shouldSend = true ) |
◆ getDefaultValue()
| pocketmine\entity\Attribute::getDefaultValue |
( |
| ) |
|
◆ getId()
| pocketmine\entity\Attribute::getId |
( |
| ) |
|
◆ getMaxValue()
| pocketmine\entity\Attribute::getMaxValue |
( |
| ) |
|
◆ getMinValue()
| pocketmine\entity\Attribute::getMinValue |
( |
| ) |
|
◆ getValue()
| pocketmine\entity\Attribute::getValue |
( |
| ) |
|
◆ isDesynchronized()
| pocketmine\entity\Attribute::isDesynchronized |
( |
| ) |
|
◆ isSyncable()
| pocketmine\entity\Attribute::isSyncable |
( |
| ) |
|
◆ markSynchronized()
| pocketmine\entity\Attribute::markSynchronized |
( |
bool | $synced = true | ) |
|
◆ resetToDefault()
| pocketmine\entity\Attribute::resetToDefault |
( |
| ) |
|
◆ setDefaultValue()
| pocketmine\entity\Attribute::setDefaultValue |
( |
float | $defaultValue | ) |
|
◆ setMaxValue()
| pocketmine\entity\Attribute::setMaxValue |
( |
float | $maxValue | ) |
|
◆ setMinValue()
| pocketmine\entity\Attribute::setMinValue |
( |
float | $minValue | ) |
|
◆ setValue()
| pocketmine\entity\Attribute::setValue |
( |
float | $value, |
|
|
bool | $fit = false, |
|
|
bool | $forceSend = false ) |
◆ $currentValue
| float pocketmine\entity\Attribute::$currentValue |
|
protected |
◆ $desynchronized
| bool pocketmine\entity\Attribute::$desynchronized = true |
|
protected |
◆ ABSORPTION
| const pocketmine\entity\Attribute::ABSORPTION = self::MC_PREFIX . "absorption" |
◆ ATTACK_DAMAGE
| const pocketmine\entity\Attribute::ATTACK_DAMAGE = self::MC_PREFIX . "attack_damage" |
◆ EXHAUSTION
| const pocketmine\entity\Attribute::EXHAUSTION = self::MC_PREFIX . "player.exhaustion" |
◆ EXPERIENCE
| const pocketmine\entity\Attribute::EXPERIENCE = self::MC_PREFIX . "player.experience" |
◆ EXPERIENCE_LEVEL
| const pocketmine\entity\Attribute::EXPERIENCE_LEVEL = self::MC_PREFIX . "player.level" |
◆ FALL_DAMAGE
| const pocketmine\entity\Attribute::FALL_DAMAGE = self::MC_PREFIX . "fall_damage" |
◆ FOLLOW_RANGE
| const pocketmine\entity\Attribute::FOLLOW_RANGE = self::MC_PREFIX . "follow_range" |
◆ FOOD
| const pocketmine\entity\Attribute::FOOD = self::HUNGER |
◆ HEALTH
| const pocketmine\entity\Attribute::HEALTH = self::MC_PREFIX . "health" |
◆ HORSE_JUMP_STRENGTH
| const pocketmine\entity\Attribute::HORSE_JUMP_STRENGTH = self::MC_PREFIX . "horse.jump_strength" |
◆ HUNGER
| const pocketmine\entity\Attribute::HUNGER = self::MC_PREFIX . "player.hunger" |
◆ KNOCKBACK_RESISTANCE
| const pocketmine\entity\Attribute::KNOCKBACK_RESISTANCE = self::MC_PREFIX . "knockback_resistance" |
◆ LAVA_MOVEMENT
| const pocketmine\entity\Attribute::LAVA_MOVEMENT = self::MC_PREFIX . "lava_movement" |
◆ LUCK
| const pocketmine\entity\Attribute::LUCK = self::MC_PREFIX . "luck" |
◆ MC_PREFIX
| const pocketmine\entity\Attribute::MC_PREFIX = "minecraft:" |
◆ MOVEMENT_SPEED
| const pocketmine\entity\Attribute::MOVEMENT_SPEED = self::MC_PREFIX . "movement" |
◆ SATURATION
| const pocketmine\entity\Attribute::SATURATION = self::MC_PREFIX . "player.saturation" |
◆ UNDERWATER_MOVEMENT
| const pocketmine\entity\Attribute::UNDERWATER_MOVEMENT = self::MC_PREFIX . "underwater_movement" |
◆ ZOMBIE_SPAWN_REINFORCEMENTS
| const pocketmine\entity\Attribute::ZOMBIE_SPAWN_REINFORCEMENTS = self::MC_PREFIX . "zombie.spawn_reinforcements" |
The documentation for this class was generated from the following file: