Seagrass 5.46.0
Extends Flowable
Implements Waterlogged
Seagrass (https://minecraft.wiki/w/Seagrass): placed inside a water source on top of a block with a full top face. Only drops with shears. Bone meal turns it into tall seagrass when the space above is a water source.
Methods
canBePlacedAt()
php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : boolgetCompostabilityChance()
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() : void