PocketMine
PlayerDeathEvent Class Reference
Inheritance diagram for PlayerDeathEvent:
EntityDeathEvent EntityEvent Event

Public Member Functions

 __construct (Player $entity, array $drops, $deathMessage)
 
 getEntity ()
 
 getDeathMessage ()
 
 setDeathMessage ($deathMessage)
 
 getKeepInventory ()
 
 setKeepInventory ($keepInventory)
 
- Public Member Functions inherited from EntityDeathEvent
 __construct (Living $entity, array $drops=[])
 
 getEntity ()
 
 getDrops ()
 
 setDrops (array $drops)
 
- Public Member Functions inherited from EntityEvent
 getEntity ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

Static Public Attributes

static $handlerList = null
 
- Static Public Attributes inherited from EntityDeathEvent
static $handlerList = null
 

Additional Inherited Members

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

Constructor & Destructor Documentation

__construct ( Player  $entity,
array  $drops,
  $deathMessage 
)
Parameters
Player$entity
Item[]$drops
string | TextContainer$deathMessage

Member Function Documentation

getDeathMessage ( )
Returns
TextContainer|string
getEntity ( )
Returns
Player
setDeathMessage (   $deathMessage)
Parameters
string | TextContainer$deathMessage

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