DryGrass 5.46.0
Extends Flowable
Short and tall dry grass (Bedrock 1.21.80): replaceable desert plants that only drop with shears. Bone meal turns short dry grass into tall dry grass; the vanilla spreading of tall dry grass is not implemented.
Methods
__construct()
php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, ?\Closure $grownVariant = null)canBeReplaced()
php
public function canBeReplaced() : boolgetCompostabilityChance()
php
public function getCompostabilityChance() : intgetFlameEncouragement()
php
public function getFlameEncouragement() : intgetFlammability()
php
public function getFlammability() : intonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool