findEnchantmentByKeyString

@Since(version = "2.2")
abstract fun findEnchantmentByKeyString(keyString: String): RegistrableEnchantment?

Finds an enchantment by its keyString (e.g. "test_enchantment" in "underscore:test_enchantment"). Returns null if none is found.