Skip to content

EntityCombustEvent ​

class · pocketmine\event\entity\EntityCombustEvent · source

Extends EntityEvent
Implements Cancellable

Properties ​

$duration protected ​

php
protected int $duration

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Entity $combustee, int $duration)

getDuration() ​

php
public function getDuration() : int

Returns the duration in seconds the entity will burn for.

setDuration() ​

php
public function setDuration(int $duration) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.