Skip to content

FurnaceBurnEvent ​

class · pocketmine\event\inventory\FurnaceBurnEvent · source

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() : int

Returns the number of ticks that the furnace will be powered for.

getFuel() ​

php
public function getFuel() : \pocketmine\item\Item

getFurnace() ​

php
public function getFurnace() : \pocketmine\block\tile\Furnace

isBurning() ​

php
public function isBurning() : bool

Returns whether the fuel item will be consumed.

setBurnTime() ​

php
public function setBurnTime(int $burnTime) : void

Sets the number of ticks that the given fuel will power the furnace for.

setBurning() ​

php
public function setBurning(bool $burning) : void

Sets whether the fuel will be consumed. If false, the furnace will smelt as if it consumed fuel, but no fuel will be deducted.

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