PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityDeathEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
26 
28  public static $handlerList = null;
29  public static $eventPool = [];
30  public static $nextEvent = 0;
31 
33  private $drops = [];
34 
35 
40  public function __construct(Living $entity, array $drops = []){
41  $this->entity = $entity;
42  $this->drops = $drops;
43  }
44 
48  public function getEntity(){
49  return $this->entity;
50  }
51 
55  public function getDrops(){
56  return $this->drops;
57  }
58 
62  public function setDrops(array $drops){
63  $this->drops = $drops;
64  }
65 
66 }
__construct(Living $entity, array $drops=[])