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->meta !== self::NORMAL){ $this->meta = PillarRotationHelper::getMetaFromFace($this->meta, $face); } return $this->getLevel()->setBlock($blockReplace, $this, true, true); } public function getToolType() : int{ return Tool::TYPE_PICKAXE; } public function getVariantBitmask() : int{ return 0x03; } public function getDrops(Item $item) : array{ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return parent::getDrops($item); } return []; } }