PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
PlayerDeathEvent.php
1 <?php
2 
22 namespace pocketmine\event\player;
23 
27 
29  public static $handlerList = null;
30  public static $eventPool = [];
31  public static $nextEvent = 0;
32 
33  private $deathMessage;
34  private $keepInventory = false;
35 
41  public function __construct(Player $entity, array $drops, $deathMessage){
42  parent::__construct($entity, $drops);
43  $this->deathMessage = $deathMessage;
44  }
45 
49  public function getEntity(){
50  return $this->entity;
51  }
52 
53  public function getDeathMessage(){
54  return $this->deathMessage;
55  }
56 
57  public function setDeathMessage($deathMessage){
58  $this->deathMessage = $deathMessage;
59  }
60 
61  public function getKeepInventory(){
62  return $this->keepInventory;
63  }
64 
65  public function setKeepInventory($keepInventory){
66  $this->keepInventory = (bool) $keepInventory;
67  }
68 
69 }
__construct(Player $entity, array $drops, $deathMessage)