Uses of Interface
io.papermc.paper.registry.data.EnchantmentRegistryEntry.Builder
Packages that use EnchantmentRegistryEntry.Builder
Package
Description
Collection of registry entry types that may be created or modified via the
RegistryEvent.This package contains events related to the Paper registry system.
-
Uses of EnchantmentRegistryEntry.Builder in io.papermc.paper.registry.data
Methods in io.papermc.paper.registry.data that return EnchantmentRegistryEntry.BuilderModifier and TypeMethodDescriptionEnchantmentRegistryEntry.Builder.activeSlots(Iterable<EquipmentSlotGroup> activeSlots) Configures the list of slot groups this enchantment may be active in.default EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.activeSlots(EquipmentSlotGroup... activeSlots) Configures the list of slot groups this enchantment may be active in.EnchantmentRegistryEntry.Builder.anvilCost(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int anvilCost) Configures the cost of applying this enchantment using an anvil.EnchantmentRegistryEntry.Builder.description(Component description) Configures the description of this enchantment entry as displayed to the client, e.g.EnchantmentRegistryEntry.Builder.exclusiveWith(RegistryKeySet<Enchantment> exclusiveWith) Configures the registry key set of enchantments that this enchantment is exclusive with.EnchantmentRegistryEntry.Builder.maximumCost(EnchantmentRegistryEntry.EnchantmentCost maximumCost) Configures the maximum cost to enchant an item with this enchantment.EnchantmentRegistryEntry.Builder.maxLevel(@org.jetbrains.annotations.Range(from=1L, to=255L) int maxLevel) Configures the maximum level this enchantment can have when applied.EnchantmentRegistryEntry.Builder.minimumCost(EnchantmentRegistryEntry.EnchantmentCost minimumCost) Configures the minimum cost needed to enchant an item with this enchantment.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 aRegistryKeySetcreated viaRegistrySet.keySet(io.papermc.paper.registry.RegistryKey, Iterable)or a tag obtained viaRegistryComposeEvent.getOrCreateTag(TagKey)with tag keys found inItemTypeTagKeyssuch asItemTypeTagKeys.ENCHANTABLE_ARMORandItemTypeTagKeys.ENCHANTABLE_SWORD.EnchantmentRegistryEntry.Builder.supportedItems(RegistryKeySet<ItemType> supportedItems) Configures the set of supported items this enchantment can be applied on.EnchantmentRegistryEntry.Builder.weight(@org.jetbrains.annotations.Range(from=1L, to=1024L) int weight) Configures the weight of this enchantment used by the weighted random when selecting enchantments. -
Uses of EnchantmentRegistryEntry.Builder in io.papermc.paper.registry.event
Fields in io.papermc.paper.registry.event with type parameters of type EnchantmentRegistryEntry.BuilderModifier and TypeFieldDescriptionstatic final RegistryEventProvider<Enchantment, EnchantmentRegistryEntry.Builder> RegistryEvents.ENCHANTMENT