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
.Classes involved in manipulating player inventories and item interactions.
-
Uses of RegistryKeySet in io.papermc.paper.block
Modifier and TypeMethodDescriptionBlockPredicate.Builder.blocks
(@Nullable RegistryKeySet<BlockType> blocks) -
Uses of RegistryKeySet in io.papermc.paper.datacomponent.item
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionConsumeEffect.RemoveStatusEffects.removeEffects()
Potion effects to removeModifier and TypeMethodDescriptionConsumeEffect.removeEffects
(RegistryKeySet<PotionEffectType> key) Creates a consume effect that gives status effects on consumption. -
Uses of RegistryKeySet in io.papermc.paper.registry.data
Modifier 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.Modifier 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
Modifier 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
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. -
Uses of RegistryKeySet in org.bukkit.inventory
Modifier 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.