Skip to content

Furnace ​

abstract class · pocketmine\block\tile\Furnace · source

Extends Spawnable
Implements ComparatorReadableContainer, Nameable

Constants ​

TAG_BURN_TIME ​

php
public const TAG_BURN_TIME = "BurnTime"

TAG_COOK_TIME ​

php
public const TAG_COOK_TIME = "CookTime"

TAG_MAX_TIME ​

php
public const TAG_MAX_TIME = "MaxTime"

Properties ​

$inventory protected ​

php
protected \pocketmine\block\inventory\FurnaceInventory $inventory

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)

checkFuel() protected ​

php
protected function checkFuel(\pocketmine\item\Item $fuel) : void

close() ​

php
public function close() : void

getDefaultName() ​

php
public function getDefaultName() : string

getFurnaceType() ​

php
abstract public function getFurnaceType() : \pocketmine\crafting\FurnaceType

getInventory() ​

php
public function getInventory() : \pocketmine\block\inventory\FurnaceInventory

getRealInventory() ​

php
public function getRealInventory() : \pocketmine\block\inventory\FurnaceInventory

onStartSmelting() protected ​

php
protected function onStartSmelting() : void

onStopSmelting() protected ​

php
protected function onStopSmelting() : void

onUpdate() ​

php
public function onUpdate() : bool

readSaveData() ​

php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

writeSaveData() protected ​

php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

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