Skip to content

NetherVines ​

class · pocketmine\block\NetherVines · source

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 = 25

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, int $growthFace)

canClimb() ​

php
public function canClimb() : bool

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getDropsForCompatibleTool() ​

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

getSupportType() ​

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

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

isAffectedBySilkTouch() ​

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

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.