Campfire
Extends Spawnable
Implements Container
Properties
$inventory protected
php
protected \pocketmine\block\inventory\CampfireInventory $inventoryMethods
__construct()
php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)addAdditionalSpawnData() protected
php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidgetCookingTimes()
php
public function getCookingTimes() : arraygetInventory()
php
public function getInventory() : \pocketmine\block\inventory\CampfireInventorygetRealInventory()
php
public function getRealInventory() : \pocketmine\block\inventory\CampfireInventoryreadSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetCookingTimes()
php
public function setCookingTimes(array $cookingTimes) : voidwriteSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void