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.-
Uses of EnchantmentRegistryEntry.Builder in io.papermc.paper.registry.data
Methods in io.papermc.paper.registry.data that return EnchantmentRegistryEntry.BuilderModifier and TypeMethodDescription@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.activeSlots(@NonNull Iterable<@NonNull EquipmentSlotGroup> activeSlots) Configures the list of slot groups this enchantment may be active in.default @NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.activeSlots(@NonNull EquipmentSlotGroup @NonNull ... activeSlots) Configures the list of slot groups this enchantment may be active in.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.anvilCost(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int anvilCost) Configures the cost of applying this enchantment using an anvil.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.description(@NonNull Component description) Configures the description of this enchantment entry as displayed to the client, e.g.@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.maximumCost(@NotNull EnchantmentRegistryEntry.EnchantmentCost maximumCost) Configures the maximum cost to enchant an item with this enchantment.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.maxLevel(@org.jetbrains.annotations.Range(from=1L, to=255L) int maxLevel) Configures the maximum level this enchantment can have when applied.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.Builder.minimumCost(@NotNull EnchantmentRegistryEntry.EnchantmentCost minimumCost) Configures the minimum cost needed to enchant an item with this enchantment.@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.@NonNull EnchantmentRegistryEntry.BuilderEnchantmentRegistryEntry.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