PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityMoveEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
25 use pocketmine\Event;
28 
32 class EntityMoveEvent extends EntityEvent implements Cancellable{
33  public static $handlerList = null;
34  public static $eventPool = [];
35  public static $nextEvent = 0;
36 
38  private $pos;
39 
40  public function __construct(Entity $entity, Vector3 $pos){
41  $this->entity = $entity;
42  $this->pos = $pos;
43  }
44 
45  public function getVector(){
46  return $this->pos;
47  }
48 
49 
50 }