pocketmine\event\entity\EntityCombustEvent::__construct PHP Method

__construct() public method

public __construct ( Entity $combustee, integer $duration, integer $ProtectLevel )
$combustee pocketmine\entity\Entity
$duration integer
$ProtectLevel integer
    public function __construct(Entity $combustee, $duration, $ProtectLevel = 0)
    {
        $this->entity = $combustee;
        $this->duration = $duration;
        $this->ProtectLevel = $ProtectLevel;
    }

Usage Example

 /**
  * @param Entity $combuster
  * @param Entity $combustee
  * @param int    $duration
  */
 public function __construct(Entity $combuster, Entity $combustee, $duration)
 {
     parent::__construct($combustee, $duration);
     $this->combuster = $combuster;
 }
All Usage Examples Of pocketmine\event\entity\EntityCombustEvent::__construct