Campfire
Extends Transparent
Implements Lightable, HorizontalFacing
Properties
$cookingTimes protected
php
protected array $cookingTimes$inventory protected
php
protected \pocketmine\block\inventory\CampfireInventory $inventoryDeprecated
This was added by mistake. It can't be relied on as the inventory won't be initialized if this block
Methods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCookingTime()
php
public function getCookingTime(int $slot) : intReturns the number of ticks during the item in the given slot has been cooked.
getDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetEntityCollisionDamage() protected
php
protected function getEntityCollisionDamage() : intgetFurnaceType() protected
php
protected function getFurnaceType() : \pocketmine\crafting\FurnaceTypegetInventory()
php
public function getInventory() : \pocketmine\block\inventory\CampfireInventoryDeprecated
This was added by mistake. It can't be relied on as the inventory won't be initialized if this block
getLightLevel()
php
public function getLightLevel() : intgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypehasEntityCollision()
php
public function hasEntityCollision() : boolisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : boolonEntityInside()
php
public function onEntityInside(\pocketmine\entity\Entity $entity) : boolonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonProjectileHit()
php
public function onProjectileHit(\pocketmine\entity\projectile\Projectile $projectile, \pocketmine\math\RayTraceResult $hitResult) : voidonScheduledUpdate()
php
public function onScheduledUpdate() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolreadStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlockrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetCookingTime()
php
public function setCookingTime(int $slot, int $time) : voidSets the number of ticks during the item in the given slot has been cooked.
writeStateToWorld()
php
public function writeStateToWorld() : void