Skip to content

Vine ​

class · pocketmine\block\Vine · source

Extends Flowable

Properties ​

$faces protected ​

php
protected array $faces

Methods ​

canBeReplaced() ​

php
public function canBeReplaced() : bool

canClimb() ​

php
public function canClimb() : bool

describeBlockOnlyState() protected ​

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

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getDrops() ​

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

getFaces() ​

php
public function getFaces() : array

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

hasFace() ​

php
public function hasFace(int $face) : bool

onEntityInside() ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

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

setFace() ​

php
public function setFace(int $face, bool $value) : self

setFaces() ​

php
public function setFaces(array $faces) : 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.