Skip to content

TallSeagrass 5.46.0 ​

class · pocketmine\block\TallSeagrass · source

Extends Flowable
Implements Waterlogged

Tall seagrass: two blocks (minecraft:seagrass with sea_grass_type double_bot / double_top), grown from seagrass with bone meal. It has no item of its own; with shears it drops two seagrass (Bedrock), otherwise nothing.

Properties ​

$top protected ​

php
protected bool $top

Methods ​

asItem() ​

php
public function asItem() : \pocketmine\item\Item

canBePlacedAt() ​

php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : bool

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAffectedBlocks() ​

php
public function getAffectedBlocks() : array

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getPickedItem() ​

php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\Item

isTop() ​

php
public function isTop() : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

setTop() ​

php
public function setTop(bool $top) : self

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