Sapling
Extends Flowable
Properties
$ready protected
php
protected bool $readyMethods
__construct()
php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, \pocketmine\block\utils\SaplingType $saplingType)describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intgetFuelTime()
php
public function getFuelTime() : intisReady()
php
public function isReady() : 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() : voidsetReady()
php
public function setReady(bool $ready) : selfticksRandomly()
php
public function ticksRandomly() : bool