Skip to content

DryGrass 5.46.0 ​

class · pocketmine\block\DryGrass · source

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() : bool

getCompostabilityChance() ​

php
public function getCompostabilityChance() : int

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.