Moss 5.46.0
Extends Opaque
Constants
VERTICAL_RANGE protected
php
protected const VERTICAL_RANGE = 5Methods
generateVegetation() protected
php
protected function generateVegetation(int $x, int $y, int $z, ?\pocketmine\player\Player $player) : voidgetCompostabilityChance()
php
public function getCompostabilityChance() : intgetHorizontalRadius() protected
php
protected function getHorizontalRadius() : intonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolplaceDoubleTallGrass() protected
php
protected function placeDoubleTallGrass(int $x, int $y, int $z, ?\pocketmine\player\Player $player) : voidplaceVegetation() protected
php
protected function placeVegetation(int $x, int $y, int $z, \pocketmine\block\Block $plant, ?\pocketmine\player\Player $player) : boolPlaces a plant only into air, through BlockGrowEvent so that protection plugins can stop it.
