PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityExplodeEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
28 
32 class EntityExplodeEvent extends EntityEvent implements Cancellable{
33  public static $handlerList = null;
34  public static $eventPool = [];
35  public static $nextEvent = 0;
36 
38  protected $position;
39 
43  protected $blocks;
44 
46  protected $yield;
47 
54  public function __construct(Entity $entity, Position $position, array $blocks, $yield){
55  $this->entity = $entity;
56  $this->position = $position;
57  $this->blocks = $blocks;
58  $this->yield = $yield;
59  }
60 
64  public function getPosition(){
65  return $this->position;
66  }
67 
71  public function getBlockList(){
72  return $this->blocks;
73  }
74 
78  public function setBlockList(array $blocks){
79  $this->blocks = $blocks;
80  }
81 
85  public function getYield(){
86  return $this->yield;
87  }
88 
92  public function setYield($yield){
93  $this->yield = $yield;
94  }
95 
96 }
__construct(Entity $entity, Position $position, array $blocks, $yield)