meta = $meta; } public function getName() : string{ static $prefixes = [ "", "Active ", "Used " ]; return ($prefixes[$this->meta] ?? "") . "Nether Reactor Core"; } public function getToolType() : int{ return Tool::TYPE_PICKAXE; } public function getHardness() : float{ return 3; } public function getDrops(Item $item) : array{ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return [ ItemFactory::get(Item::IRON_INGOT, 0, 6), ItemFactory::get(Item::DIAMOND, 0, 3) ]; } return []; } }