Skip to content

CakeWithCandle ​

class · pocketmine\block\CakeWithCandle · source

Extends BaseCake
Implements Lightable, ComparatorReadable

Methods ​

getCandle() ​

php
public function getCandle() : \pocketmine\block\Candle

getComparatorOutput() 5.46.0 ​

php
public function getComparatorOutput() : int

getDropsForCompatibleTool() ​

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

getPickedItem() ​

php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\Item

getResidue() ​

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

onConsume() ​

php
public function onConsume(\pocketmine\entity\Living $consumer) : void

onInteract() ​

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

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

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