Skip to content

Cake ​

class · pocketmine\block\Cake · source

Extends BaseCake
Implements ComparatorReadable

Constants ​

MAX_BITES ​

php
public const MAX_BITES = 6

Properties ​

$bites protected ​

php
protected int $bites

Methods ​

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getBites() ​

php
public function getBites() : int

getComparatorOutput() 5.46.0 ​

php
public function getComparatorOutput() : int

getDropsForCompatibleTool() ​

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

getResidue() ​

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

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

setBites() ​

php
public function setBites(int $bites) : self

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