CaveVines
Extends Flowable
Implements Ageable
Constants
MAX_AGE
php
public const MAX_AGE = 25Properties
$berries protected
php
protected bool $berries$head protected
php
protected bool $headMethods
asItem()
php
public function asItem() : \pocketmine\item\ItemcanClimb()
php
public function canClimb() : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetLightLevel()
php
public function getLightLevel() : intgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypehasBerries()
php
public function hasBerries() : boolhasEntityCollision()
php
public function hasEntityCollision() : boolisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : boolisHead()
php
public function isHead() : 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 = []) : boolonRandomTick()
php
public function onRandomTick() : 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) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetBerries()
php
public function setBerries(bool $berries) : selfsetHead()
php
public function setHead(bool $head) : selfticksRandomly()
php
public function ticksRandomly() : bool