Uses of Interface
io.papermc.paper.registry.data.EnchantmentRegistryEntry.Builder
Package
Description
Collection of registry entry types that may be created or modified via the
RegistryEvent
.-
Uses of EnchantmentRegistryEntry.Builder in io.papermc.paper.registry.data
Modifier and TypeMethodDescriptionEnchantmentRegistryEntry.Builder.activeSlots
(Iterable<EquipmentSlotGroup> activeSlots) Configures the list of slot groups this enchantment may be active in.default EnchantmentRegistryEntry.Builder
EnchantmentRegistryEntry.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 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.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
Modifier and TypeFieldDescriptionstatic final RegistryEventProvider
<Enchantment, EnchantmentRegistryEntry.Builder> RegistryEvents.ENCHANTMENT