getUnderscoreEnchantment

@Since(version = "2.2")
abstract fun getUnderscoreEnchantment(name: String): NamespacedKey?

Gets the namespaced key of an enchantment by its name.

Return

the namespaced key of the enchantment, or null if not found