meta = $meta; } public function getHardness() : float{ return 0.8; } public function getName() : string{ static $names = [ self::NORMAL => "Quartz Block", self::CHISELED => "Chiseled Quartz Block", self::PILLAR => "Quartz Pillar" ]; return $names[$this->getVariant()] ?? "Unknown"; } public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{ if($this->getVariant() !== self::NORMAL){ $this->meta = PillarRotationHelper::getMetaFromFace($this->meta, $face); } return $this->getLevelNonNull()->setBlock($blockReplace, $this, true, true); } public function getToolType() : int{ return BlockToolType::TYPE_PICKAXE; } public function getToolHarvestLevel() : int{ return TieredTool::TIER_WOODEN; } public function getVariantBitmask() : int{ return 0x03; } }