Skip to content

MangrovePropagule 5.46.0 ​

class · pocketmine\block\MangrovePropagule · source

Extends Flowable

Mangrove propagule. Planted propagules stand on dirt, mud, clay or farmland and are always fully grown (stage 4), like vanilla. Hanging propagules hang from mangrove leaves and grow from stage 0 to 4 on random ticks or with bone meal; they only drop themselves once fully grown.

Not implemented: planted propagules growing into mangrove trees, and bone meal on mangrove leaves creating hanging propagules.

Constants ​

MAX_STAGE ​

php
public const MAX_STAGE = 4

Methods ​

describeBlockOnlyState() protected ​

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

getCompostabilityChance() ​

php
public function getCompostabilityChance() : int

getDropsForCompatibleTool() ​

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

getStage() ​

php
public function getStage() : int

isHanging() ​

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

setHanging() ​

php
public function setHanging(bool $hanging) : self

setStage() ​

php
public function setStage(int $stage) : 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.