PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\event\player\PlayerDeathEvent Class Reference
+ Inheritance diagram for pocketmine\event\player\PlayerDeathEvent:
+ Collaboration diagram for pocketmine\event\player\PlayerDeathEvent:

Public Member Functions

 __construct (Player $entity, array $drops, $deathMessage)
 
 getEntity ()
 
 getDeathMessage ()
 
 setDeathMessage ($deathMessage)
 
 getKeepInventory ()
 
 setKeepInventory ($keepInventory)
 
 getDrops ()
 
 setDrops (array $drops)
 
 getEventName ()
 
 getHandlers ()
 

Static Public Attributes

static $handlerList = null
 
static $eventPool = []
 
static $nextEvent = 0
 

Protected Attributes

 $entity
 
 $eventName = null
 

Detailed Description

Definition at line 28 of file PlayerDeathEvent.php.

Constructor & Destructor Documentation

pocketmine\event\player\PlayerDeathEvent::__construct ( Player  $entity,
array  $drops,
  $deathMessage 
)
Parameters
Player$entity
Item[]$drops
string$deathMessage

Definition at line 41 of file PlayerDeathEvent.php.

Member Function Documentation

pocketmine\event\entity\EntityDeathEvent::getDrops ( )
inherited
Returns
[]

Definition at line 55 of file EntityDeathEvent.php.

pocketmine\event\player\PlayerDeathEvent::getEntity ( )
Returns
Player

Definition at line 49 of file PlayerDeathEvent.php.

pocketmine\event\Event::getEventName ( )
finalinherited
Returns
string

Definition at line 45 of file Event.php.

References pocketmine\event\Event\$eventName.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\Event::getHandlers ( )
inherited
Returns
HandlerList

Definition at line 82 of file Event.php.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\entity\EntityDeathEvent::setDrops ( array  $drops)
inherited
Parameters
Item[]$drops

Definition at line 62 of file EntityDeathEvent.php.

Member Data Documentation

pocketmine\event\Event::$eventName = null
protectedinherited

Any callable event must declare the static variable

public static $handlerList = null; public static $eventPool = []; public static $nextEvent = 0;

Not doing so will deny the proper event initialization

Definition at line 39 of file Event.php.

Referenced by pocketmine\event\Event\getEventName().


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