meta = $meta; } public function getName() : string{ return "Dandelion"; } public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{ $down = $this->getSide(Vector3::SIDE_DOWN); if($down->getId() === Block::GRASS or $down->getId() === Block::DIRT or $down->getId() === Block::FARMLAND){ $this->getLevelNonNull()->setBlock($blockReplace, $this, true, true); return true; } return false; } public function onNearbyBlockChange() : void{ if($this->getSide(Vector3::SIDE_DOWN)->isTransparent()){ $this->getLevelNonNull()->useBreakOn($this); } } public function getFlameEncouragement() : int{ return 60; } public function getFlammability() : int{ return 100; } }