Skip to content

Campfire ​

class · pocketmine\block\tile\Campfire · source

Extends Spawnable
Implements Container

Properties ​

$inventory protected ​

php
protected \pocketmine\block\inventory\CampfireInventory $inventory

Methods ​

__construct() ​

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

addAdditionalSpawnData() protected ​

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

getCookingTimes() ​

php
public function getCookingTimes() : array

getInventory() ​

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

getRealInventory() ​

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

readSaveData() ​

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

setCookingTimes() ​

php
public function setCookingTimes(array $cookingTimes) : 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.