PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
EntityCombustEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
26 
27 class EntityCombustEvent extends EntityEvent implements Cancellable{
28  public static $handlerList = null;
29  public static $eventPool = [];
30  public static $nextEvent = 0;
31 
32  protected $duration;
33 
38  public function __construct(Entity $combustee, $duration){
39  $this->entity = $combustee;
40  $this->duration = $duration;
41  }
42 
43  public function getDuration(){
44  return $this->duration;
45  }
46 
47  public function setDuration($duration){
48  $this->duration = (int) $duration;
49  }
50 
51 }
__construct(Entity $combustee, $duration)