getEnchantment

fun ItemInstance?.getEnchantment(enchantment: ResourceKey<Enchantment>): Int