mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Implemented hunger-related regen and damage
This commit is contained in:
@ -49,6 +49,7 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
|
||||
const CAUSE_SUICIDE = 12;
|
||||
const CAUSE_MAGIC = 13;
|
||||
const CAUSE_CUSTOM = 14;
|
||||
const CAUSE_STARVATION = 15;
|
||||
|
||||
|
||||
private $cause;
|
||||
|
@ -31,6 +31,7 @@ class EntityRegainHealthEvent extends EntityEvent implements Cancellable{
|
||||
const CAUSE_EATING = 1;
|
||||
const CAUSE_MAGIC = 2;
|
||||
const CAUSE_CUSTOM = 3;
|
||||
const CAUSE_SATURATION = 4;
|
||||
|
||||
private $amount;
|
||||
private $reason;
|
||||
|
Reference in New Issue
Block a user