Skip to content

Campfire ​

class · pocketmine\block\Campfire · source

Extends Transparent
Implements Lightable, HorizontalFacing

Properties ​

$cookingTimes protected ​

php
protected array $cookingTimes

$inventory protected ​

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

Deprecated

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) : void

getCookingTime() ​

php
public function getCookingTime(int $slot) : int

Returns the number of ticks during the item in the given slot has been cooked.

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getEntityCollisionDamage() protected ​

php
protected function getEntityCollisionDamage() : int

getFurnaceType() protected ​

php
protected function getFurnaceType() : \pocketmine\crafting\FurnaceType

getInventory() ​

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

Deprecated

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

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

onEntityInside() ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

onProjectileHit() ​

php
public function onProjectileHit(\pocketmine\entity\projectile\Projectile $projectile, \pocketmine\math\RayTraceResult $hitResult) : void

onScheduledUpdate() ​

php
public function onScheduledUpdate() : void

place() ​

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) : bool

readStateFromWorld() ​

php
public function readStateFromWorld() : \pocketmine\block\Block

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setCookingTime() ​

php
public function setCookingTime(int $slot, int $time) : void

Sets the number of ticks during the item in the given slot has been cooked.

writeStateToWorld() ​

php
public function writeStateToWorld() : void

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