Uses of Interface
io.papermc.paper.registry.set.RegistryKeySet
Package
Description
Collection of registry entry types that may be created or modified via the
RegistryEvent
.Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.-
Uses of RegistryKeySet in io.papermc.paper.registry.data
Modifier and TypeMethodDescription@NonNull RegistryKeySet
<Enchantment> EnchantmentRegistryEntry.exclusiveWith()
Provides the registry key set of enchantments that this enchantment is exclusive with.@Nullable RegistryKeySet
<ItemType> EnchantmentRegistryEntry.primaryItems()
Provides the registry key set referencing the item types this enchantment can be applied to when enchanting in an enchantment table.@NonNull RegistryKeySet
<ItemType> EnchantmentRegistryEntry.supportedItems()
Provides the registry key set referencing the items this enchantment is supported on.Modifier and TypeMethodDescription@NonNull EnchantmentRegistryEntry.Builder
EnchantmentRegistryEntry.Builder.exclusiveWith
(@NonNull RegistryKeySet<Enchantment> exclusiveWith) Configures the registry key set of enchantments that this enchantment is exclusive with.@NonNull EnchantmentRegistryEntry.Builder
EnchantmentRegistryEntry.Builder.primaryItems
(@Nullable RegistryKeySet<ItemType> primaryItems) Configures a set of item types this enchantment can naturally be applied to, when enchanting in an enchantment table.This can be aRegistryKeySet
created viaRegistrySet.keySet(io.papermc.paper.registry.RegistryKey, Iterable)
or a tag obtained viaRegistryFreezeEvent.getOrCreateTag(TagKey)
with tag keys found inItemTypeTagKeys
such asItemTypeTagKeys.ENCHANTABLE_ARMOR
andItemTypeTagKeys.ENCHANTABLE_SWORD
.@NonNull EnchantmentRegistryEntry.Builder
EnchantmentRegistryEntry.Builder.supportedItems
(@NonNull RegistryKeySet<ItemType> supportedItems) Configures the set of supported items this enchantment can be applied on. -
Uses of RegistryKeySet in io.papermc.paper.registry.set
Modifier and TypeMethodDescriptionstatic <T extends Keyed>
RegistryKeySet<T> RegistrySet.keySet
(@NonNull RegistryKey<T> registryKey, @NonNull TypedKey<T> @NonNull ... keys) Creates a directRegistrySet
fromTypedKeys
.static <T extends Keyed>
@NonNull RegistryKeySet<T> RegistrySet.keySet
(@NonNull RegistryKey<T> registryKey, @NonNull Iterable<TypedKey<T>> keys) Creates a directRegistrySet
fromTypedKeys
.static <T extends Keyed>
@NonNull RegistryKeySet<T> RegistrySet.keySetFromValues
(@NonNull RegistryKey<T> registryKey, @NonNull Iterable<? extends T> values) Creates aRegistryKeySet
from registry-backed values. -
Uses of RegistryKeySet in io.papermc.paper.registry.tag
Modifier and TypeInterfaceDescriptioninterface
A namedRegistryKeySet
which are created via the datapack tag system. -
Uses of RegistryKeySet in org.bukkit.enchantments
Modifier and TypeMethodDescriptionabstract @NotNull RegistryKeySet
<Enchantment> Enchantment.getExclusiveWith()
Provides the registry key set of enchantments that this enchantment is exclusive with.abstract @Nullable RegistryKeySet
<ItemType> Enchantment.getPrimaryItems()
Provides the registry key set referencing the item types this enchantment can be applied to when enchanting in an enchantment table.abstract @NotNull RegistryKeySet
<ItemType> Enchantment.getSupportedItems()
Provides the registry key set referencing the items this enchantment is supported on.