primaryItems
RegistryKeySet created via
RegistrySet.keySet(io.papermc.paper.registry.RegistryKey, Iterable) or a tag obtained via
RegistryComposeEvent.getOrCreateTag(TagKey) with
tag keys found in ItemTypeTagKeys such as
ItemTypeTagKeys.ENCHANTABLE_ARMOR and
ItemTypeTagKeys.ENCHANTABLE_SWORD.
Defaults to null which means all EnchantmentRegistryEntry.supportedItems() are considered primary items.
Additionally, the tag EnchantmentTagKeys.IN_ENCHANTING_TABLE defines
which enchantments can even show up in an enchantment table.
- Parameters:
primaryItems- the registry key set representing the primary items.- Returns:
- this builder instance.
- See Also: