Skip to content

Moss 5.46.0 ​

class · pocketmine\block\Moss · source

Extends Opaque

Constants ​

VERTICAL_RANGE protected ​

php
protected const VERTICAL_RANGE = 5

Methods ​

generateVegetation() protected ​

php
protected function generateVegetation(int $x, int $y, int $z, ?\pocketmine\player\Player $player) : void

getCompostabilityChance() ​

php
public function getCompostabilityChance() : int

getHorizontalRadius() protected ​

php
protected function getHorizontalRadius() : int

onInteract() ​

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

placeDoubleTallGrass() protected ​

php
protected function placeDoubleTallGrass(int $x, int $y, int $z, ?\pocketmine\player\Player $player) : void

placeVegetation() protected ​

php
protected function placeVegetation(int $x, int $y, int $z, \pocketmine\block\Block $plant, ?\pocketmine\player\Player $player) : bool

Places a plant only into air, through BlockGrowEvent so that protection plugins can stop it.

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