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