EntityRegainHealthEvent
Extends EntityEvent
Implements Cancellable
Constants
CAUSE_CUSTOM
php
public const CAUSE_CUSTOM = 3CAUSE_EATING
php
public const CAUSE_EATING = 1CAUSE_MAGIC
php
public const CAUSE_MAGIC = 2CAUSE_REGEN
php
public const CAUSE_REGEN = 0CAUSE_SATURATION
php
public const CAUSE_SATURATION = 4Methods
__construct()
php
public function __construct(\pocketmine\entity\Entity $entity, float $amount, int $regainReason)getAmount()
php
public function getAmount() : floatgetRegainReason()
php
public function getRegainReason() : intReturns one of the CAUSE_* constants to indicate why this regeneration occurred.
setAmount()
php
public function setAmount(float $amount) : void