Skip to content

PaleHangingMoss 5.46.0 ​

class · pocketmine\block\PaleHangingMoss · source

Extends Flowable

Pale hanging moss (Bedrock 1.21.50): hangs from the bottom of a full block, leaves or another pale hanging moss. The lowest block of a strand is the tip. Bone meal extends the strand downwards by one block. Only drops with shears or silk touch.

Properties ​

$tip protected ​

php
protected bool $tip

Methods ​

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

getCompostabilityChance() ​

php
public function getCompostabilityChance() : int

getDropsForIncompatibleTool() ​

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

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

isTip() ​

php
public function isTip() : bool

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

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

setTip() ​

php
public function setTip(bool $tip) : self

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