PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityLevelChangeEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
25 use pocketmine\Event;
28 
30  public static $handlerList = null;
31  public static $eventPool = [];
32  public static $nextEvent = 0;
33 
34  private $originLevel;
35  private $targetLevel;
36 
37  public function __construct(Entity $entity, Level $originLevel, Level $targetLevel){
38  $this->entity = $entity;
39  $this->originLevel = $originLevel;
40  $this->targetLevel = $targetLevel;
41  }
42 
43  public function getOrigin(){
44  return $this->originLevel;
45  }
46 
47  public function getTarget(){
48  return $this->targetLevel;
49  }
50 }