meta = $meta; } public function getHardness(){ return 0.8; } public function getName(){ static $names = [ self::QUARTZ_NORMAL => "Quartz Block", self::QUARTZ_CHISELED => "Chiseled Quartz Block", self::QUARTZ_PILLAR => "Quartz Pillar", self::QUARTZ_PILLAR2 => "Quartz Pillar", ]; return $names[$this->meta & 0x03]; } public function getToolType(){ return Tool::TYPE_PICKAXE; } public function getDrops(Item $item){ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return [ [Item::QUARTZ_BLOCK, $this->meta & 0x03, 1], ]; }else{ return []; } } }