Skip to content

ShelfMushroom 5.46.0 ​

class · pocketmine\block\ShelfMushroom · source

Extends Flowable
Implements HorizontalFacing

Shelf mushroom (Bedrock 1.26.40): a flat fungus that grows on the side of a block.

Constants ​

MAX_GROWTH ​

php
public const MAX_GROWTH = 7

MIN_GROWTH ​

php
public const MIN_GROWTH = 0

Properties ​

$growth protected ​

php
protected int $growth

Methods ​

describeBlockOnlyState() protected ​

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

getGrowth() ​

php
public function getGrowth() : int

place() ​

php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : bool

setGrowth() ​

php
public function setGrowth(int $growth) : self

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