Skip to content

Seagrass 5.46.0 ​

class · pocketmine\block\Seagrass · source

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

getCompostabilityChance() ​

php
public function getCompostabilityChance() : int

onInteract() ​

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

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

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