name

fun name(name: Component)

Sets the name of the enchantment.

This function is exclusive with localizedName.