Skip to content

LeafLitter 5.46.0 ​

class · pocketmine\block\LeafLitter · source

Extends PinkPetals

Leaf litter (Bedrock 1.21.80): up to four layers of fallen leaves, placed like pink petals but on any block with a full top face. Unlike pink petals it can't be grown with bone meal.

Methods ​

canBeSupportedAt() protected ​

php
protected function canBeSupportedAt(\pocketmine\block\Block $block) : bool

onInteract() ​

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

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