meta = $meta; } public function getName() : string{ return "Lily Pad"; } public function getHardness() : float{ return 0.6; } protected function recalculateBoundingBox() : ?AxisAlignedBB{ return new AxisAlignedBB( $this->x + 0.0625, $this->y, $this->z + 0.0625, $this->x + 0.9375, $this->y + 0.015625, $this->z + 0.9375 ); } public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{ if($blockClicked instanceof Water){ $up = $blockClicked->getSide(Vector3::SIDE_UP); if($up->getId() === Block::AIR){ $this->getLevel()->setBlock($up, $this, true, true); return true; } } return false; } public function onNearbyBlockChange() : void{ if(!($this->getSide(Vector3::SIDE_DOWN) instanceof Water)){ $this->getLevel()->useBreakOn($this); } } public function getVariantBitmask() : int{ return 0; } }