◆ __construct()
__construct |
( |
Entity |
$entity, |
|
|
|
$amount, |
|
|
|
$regainReason |
|
) |
| |
- Parameters
-
Entity | $entity | |
float | $amount | |
int | $regainReason | |
47 $this->amount = $amount;
48 $this->reason = (int) $regainReason;
◆ getAmount()
◆ getRegainReason()
◆ setAmount()
- Parameters
-
62 $this->amount = $amount;
◆ $handlerList
◆ CAUSE_CUSTOM
◆ CAUSE_EATING
◆ CAUSE_MAGIC
◆ CAUSE_REGEN
◆ CAUSE_SATURATION
const CAUSE_SATURATION = 4 |
The documentation for this class was generated from the following file:
- src/pocketmine/event/entity/EntityRegainHealthEvent.php