PlayerExhaustEvent
Extends EntityEvent
Implements Cancellable
Constants
CAUSE_ATTACK
php
public const CAUSE_ATTACK = 1CAUSE_CUSTOM
php
public const CAUSE_CUSTOM = 11CAUSE_DAMAGE
php
public const CAUSE_DAMAGE = 2CAUSE_HEALTH_REGEN
php
public const CAUSE_HEALTH_REGEN = 4CAUSE_JUMPING
php
public const CAUSE_JUMPING = 9CAUSE_MINING
php
public const CAUSE_MINING = 3CAUSE_POTION
php
public const CAUSE_POTION = 5CAUSE_SPRINTING
php
public const CAUSE_SPRINTING = 7CAUSE_SPRINT_JUMPING
php
public const CAUSE_SPRINT_JUMPING = 10CAUSE_SWIMMING
php
public const CAUSE_SWIMMING = 8CAUSE_WALKING
php
public const CAUSE_WALKING = 6Properties
$human
php
public \pocketmine\entity\Human $humanMethods
__construct()
php
public function __construct(\pocketmine\entity\Human $human, float $amount, int $cause)getAmount()
php
public function getAmount() : floatgetCause()
php
public function getCause() : intReturns an int cause of the exhaustion - one of the constants at the top of this class.
getPlayer()
php
public function getPlayer()setAmount()
php
public function setAmount(float $amount) : void