Skip to content

BaseCake ​

abstract class · pocketmine\block\BaseCake · source

Extends Transparent
Implements FoodSource

Methods ​

getAdditionalEffects() ​

php
public function getAdditionalEffects() : array

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getFoodRestore() ​

php
public function getFoodRestore() : int

getResidue() ​

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

getSaturationRestore() ​

php
public function getSaturationRestore() : float

getSupportType() ​

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

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

requiresHunger() ​

php
public function requiresHunger() : bool

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