PocketMine
EntityRegainHealthEvent Class Reference
Inheritance diagram for EntityRegainHealthEvent:
EntityEvent Cancellable Event

Public Member Functions

 __construct (Entity $entity, $amount, $regainReason)
 
 getAmount ()
 
 setAmount ($amount)
 
 getRegainReason ()
 
- Public Member Functions inherited from EntityEvent
 getEntity ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($value=true)
 

Data Fields

const CAUSE_REGEN = 0
 
const CAUSE_EATING = 1
 
const CAUSE_MAGIC = 2
 
const CAUSE_CUSTOM = 3
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from EntityEvent
 $entity
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

__construct ( Entity  $entity,
  $amount,
  $regainReason 
)
Parameters
Entity$entity
float$amount
int$regainReason

Member Function Documentation

getAmount ( )
Returns
float
setAmount (   $amount)
Parameters
float$amount

The documentation for this class was generated from the following file: