Uses of Interface
io.papermc.paper.registry.set.RegistryKeySet
Packages that use RegistryKeySet
Package
Description
Collection of registry entry types that may be created or modified via the
RegistryEvent.-
Uses of RegistryKeySet in io.papermc.paper.registry.data
Methods in io.papermc.paper.registry.data that return RegistryKeySetModifier 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.Methods in io.papermc.paper.registry.data with parameters of type RegistryKeySetModifier and TypeMethodDescription@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.exclusiveWith(@NonNull RegistryKeySet<Enchantment> exclusiveWith) Configures the registry key set of enchantments that this enchantment is exclusive with.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.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 aRegistryKeySetcreated viaRegistrySet.keySet(io.papermc.paper.registry.RegistryKey, Iterable)or a tag obtained viaRegistryFreezeEvent.getOrCreateTag(TagKey)with tag keys found inItemTypeTagKeyssuch asItemTypeTagKeys.ENCHANTABLE_ARMORandItemTypeTagKeys.ENCHANTABLE_SWORD.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.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
Methods in io.papermc.paper.registry.set that return RegistryKeySetModifier and TypeMethodDescriptionstatic <T extends Keyed>
RegistryKeySet<T> RegistrySet.keySet(@NonNull RegistryKey<T> registryKey, @NonNull TypedKey<T> @NonNull ... keys) Creates a directRegistrySetfromTypedKeys.static <T extends Keyed>
@NonNull RegistryKeySet<T> RegistrySet.keySet(@NonNull RegistryKey<T> registryKey, @NonNull Iterable<TypedKey<T>> keys) Creates a directRegistrySetfromTypedKeys.static <T extends Keyed>
@NonNull RegistryKeySet<T> RegistrySet.keySetFromValues(@NonNull RegistryKey<T> registryKey, @NonNull Iterable<? extends T> values) Creates aRegistryKeySetfrom registry-backed values. -
Uses of RegistryKeySet in io.papermc.paper.registry.tag
Subinterfaces of RegistryKeySet in io.papermc.paper.registry.tagModifier and TypeInterfaceDescriptioninterfaceA namedRegistryKeySetwhich are created via the datapack tag system.