enchantsPrimary

fun enchantsPrimary(canEnchant: (ItemStack) -> Boolean)

Sets the items for which this enchantment can show up in the enchanting table.

For your own custom items, prefer configuring the supported enchantments via the Enchantable item behavior.