self::meta(1, 60, 5, 2, 15), self::GOLD => self::meta(2, 33, 5, 12, 22), self::STONE => self::meta(3, 132, 6, 4, 5), self::IRON => self::meta(4, 251, 7, 6, 14), self::DIAMOND => self::meta(5, 1562, 8, 8, 10), self::NETHERITE => self::meta(6, 2032, 9, 9, 15) }; } public function getHarvestLevel() : int{ return $this->getMetadata()[0]; } public function getMaxDurability() : int{ return $this->getMetadata()[1]; } public function getBaseAttackPoints() : int{ return $this->getMetadata()[2]; } public function getBaseEfficiency() : int{ return $this->getMetadata()[3]; } /** * Returns the value that defines how enchantable the item is. * * The higher an item's enchantability is, the more likely it will be to gain high-level enchantments * or multiple enchantments upon being enchanted in an enchanting table. */ public function getEnchantability() : int{ return $this->getMetadata()[4]; } }