PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityDamageByBlockEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
26 
28  public static $eventPool = [];
29  public static $nextEvent = 0;
30 
32  private $damager;
33 
34 
41  public function __construct(Block $damager, Entity $entity, $cause, $damage){
42  $this->damager = $damager;
43  parent::__construct($entity, $cause, $damage);
44  }
45 
49  public function getDamager(){
50  return $this->damager;
51  }
52 
53 
54 }
__construct(Block $damager, Entity $entity, $cause, $damage)