FurnaceBurnEvent
Extends BlockEvent
Implements Cancellable
Called when a furnace is about to consume a new fuel item.
Methods
__construct()
php
public function __construct(\pocketmine\block\tile\Furnace $furnace, \pocketmine\item\Item $fuel, int $burnTime)getBurnTime()
php
public function getBurnTime() : intReturns the number of ticks that the furnace will be powered for.
getFuel()
php
public function getFuel() : \pocketmine\item\ItemgetFurnace()
php
public function getFurnace() : \pocketmine\block\tile\FurnaceisBurning()
php
public function isBurning() : boolReturns whether the fuel item will be consumed.
setBurnTime()
php
public function setBurnTime(int $burnTime) : voidSets the number of ticks that the given fuel will power the furnace for.
setBurning()
php
public function setBurning(bool $burning) : voidSets whether the fuel will be consumed. If false, the furnace will smelt as if it consumed fuel, but no fuel will be deducted.
