findEnchantmentByKey

@Since(version = "2.2")
abstract fun findEnchantmentByKey(key: NamespacedKey): RegistrableEnchantment?

Finds an enchantment by a NamespacedKey.

Return

the enchantment, or null if not found