PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityBlockChangeEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
27 
32  public static $handlerList = null;
33  public static $eventPool = [];
34  public static $nextEvent = 0;
35 
36  private $from;
37  private $to;
38 
39  public function __construct(Entity $entity, Block $from, Block $to){
40  $this->entity = $entity;
41  $this->from = $from;
42  $this->to = $to;
43  }
44 
48  public function getBlock(){
49  return $this->from;
50  }
51 
55  public function getTo(){
56  return $this->to;
57  }
58 
59 }