toRegistryEntryOrNull

fun ResourceKey<Enchantment>.toRegistryEntryOrNull(): Holder<Enchantment>?