MangrovePropagule 5.46.0
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 = 4Methods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCompostabilityChance()
php
public function getCompostabilityChance() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetStage()
php
public function getStage() : intisHanging()
php
public function isHanging() : 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() : voidsetHanging()
php
public function setHanging(bool $hanging) : selfsetStage()
php
public function setStage(int $stage) : selfticksRandomly()
php
public function ticksRandomly() : bool