Sugarcane
Extends Flowable
Implements Ageable
Constants
MAX_AGE
php
public const MAX_AGE = 15Methods
getCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonRandomTick()
php
public function onRandomTick() : voidplace()
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) : boolticksRandomly()
php
public function ticksRandomly() : bool