Skip to content

CaveVines ​

class · pocketmine\block\CaveVines · source

Extends Flowable
Implements Ageable

Constants ​

MAX_AGE ​

php
public const MAX_AGE = 25

Properties ​

$berries protected ​

php
protected bool $berries

$head protected ​

php
protected bool $head

Methods ​

asItem() ​

php
public function asItem() : \pocketmine\item\Item

canClimb() ​

php
public function canClimb() : bool

describeBlockOnlyState() protected ​

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

getDropsForCompatibleTool() ​

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

getLightLevel() ​

php
public function getLightLevel() : int

getSupportType() ​

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

hasBerries() ​

php
public function hasBerries() : bool

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

isHead() ​

php
public function isHead() : 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

onRandomTick() ​

php
public function onRandomTick() : 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

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setBerries() ​

php
public function setBerries(bool $berries) : self

setHead() ​

php
public function setHead(bool $head) : self

ticksRandomly() ​

php
public function ticksRandomly() : bool

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