Skip to content

Sapling ​

class · pocketmine\block\Sapling · source

Extends Flowable

Properties ​

$ready protected ​

php
protected bool $ready

Methods ​

__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) : void

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getFuelTime() ​

php
public function getFuelTime() : int

isReady() ​

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

setReady() ​

php
public function setReady(bool $ready) : 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.