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
.Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.Classes involved in manipulating player inventories and item interactions.
-
Uses of RegistryKeySet in io.papermc.paper.block
Methods in io.papermc.paper.block that return RegistryKeySetMethods in io.papermc.paper.block with parameters of type RegistryKeySetModifier and TypeMethodDescriptionBlockPredicate.Builder.blocks
(@Nullable RegistryKeySet<BlockType> blocks) -
Uses of RegistryKeySet in io.papermc.paper.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return RegistryKeySetModifier and TypeMethodDescriptionEquippable.allowedEntities()
Gets the set of allowed entities that can equip this item.Tool.Rule.blocks()
Blocks to match.Repairable.types()
The types that this item is repairable to.Methods in io.papermc.paper.datacomponent.item with parameters of type RegistryKeySetModifier and TypeMethodDescriptionEquippable.Builder.allowedEntities
(@Nullable RegistryKeySet<EntityType> allowedEntities) Sets the allowed entities that can equip this item.static Repairable
Repairable.repairable
(RegistryKeySet<ItemType> types) static Tool.Rule
Creates a mining rule that specifies how an item interacts with certain block types. -
Uses of RegistryKeySet in io.papermc.paper.datacomponent.item.consumable
Methods in io.papermc.paper.datacomponent.item.consumable that return RegistryKeySetModifier and TypeMethodDescriptionConsumeEffect.RemoveStatusEffects.removeEffects()
Potion effects to remove.Methods in io.papermc.paper.datacomponent.item.consumable with parameters of type RegistryKeySetModifier and TypeMethodDescriptionConsumeEffect.removeEffects
(RegistryKeySet<PotionEffectType> effects) Creates a consume effect that removes status effects on consumption. -
Uses of RegistryKeySet in io.papermc.paper.registry.data
Methods in io.papermc.paper.registry.data that return RegistryKeySetModifier and TypeMethodDescriptionEnchantmentRegistryEntry.exclusiveWith()
Provides the registry key set of enchantments that this enchantment is exclusive with.EnchantmentRegistryEntry.primaryItems()
Provides the registry key set referencing the item types this enchantment can be applied to when enchanting in an enchantment table.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 TypeMethodDescriptionEnchantmentRegistryEntry.Builder.exclusiveWith
(RegistryKeySet<Enchantment> exclusiveWith) Configures the registry key set of enchantments that this enchantment is exclusive with.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
.EnchantmentRegistryEntry.Builder.supportedItems
(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
(RegistryKey<T> registryKey, TypedKey<T>... keys) Creates a directRegistrySet
fromTypedKeys
.static <T extends Keyed>
RegistryKeySet<T> RegistrySet.keySet
(RegistryKey<T> registryKey, Iterable<TypedKey<T>> keys) Creates a directRegistrySet
fromTypedKeys
.static <T extends Keyed>
RegistryKeySet<T> RegistrySet.keySetFromValues
(RegistryKey<T> registryKey, Iterable<? extends T> values) Creates aRegistryKeySet
from registry-backed values. -
Uses of RegistryKeySet in io.papermc.paper.registry.tag
Subinterfaces of RegistryKeySet in io.papermc.paper.registry.tagModifier and TypeInterfaceDescriptioninterface
A namedRegistryKeySet
which are created via the datapack tag system. -
Uses of RegistryKeySet in org.bukkit.enchantments
Methods in org.bukkit.enchantments that return RegistryKeySetModifier 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. -
Uses of RegistryKeySet in org.bukkit.inventory
Methods in org.bukkit.inventory with parameters of type RegistryKeySetModifier and TypeMethodDescriptionItemFactory.enchantWithLevels
(@NotNull ItemStack itemStack, @org.jetbrains.annotations.Range(from=1L, to=30L) int levels, RegistryKeySet<@NotNull Enchantment> keySet, Random random) Randomly enchants a copy of the providedItemStack
using the given experience levels.ItemStack.enchantWithLevels
(@org.jetbrains.annotations.Range(from=1L, to=30L) int levels, RegistryKeySet<@NotNull Enchantment> keySet, Random random) Randomly enchants a copy of thisItemStack
using the given experience levels.