NetherVines
Extends Flowable
Implements Ageable
This class is used for Weeping & Twisting vines, because they have same behaviour
Constants
MAX_AGE
php
public const MAX_AGE = 25Methods
__construct()
php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, int $growthFace)canClimb()
php
public function canClimb() : boolgetCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypehasEntityCollision()
php
public function hasEntityCollision() : boolisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : 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() : arrayticksRandomly()
php
public function ticksRandomly() : bool