Class EnchantTableConfigurationBuilder

java.lang.Object
io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
All Implemented Interfaces:
EnchantTableConfiguration.Builder

public final class EnchantTableConfigurationBuilder extends Object implements EnchantTableConfiguration.Builder
Builder implementation for EnchantTableConfiguration.

This builder allows configuring all aspects of how an enchantment appears in the enchantment table:

  • Weight multiplier - affects selection probability relative to rarity
  • Bookshelf range - min/max bookshelves required to appear
  • Cost multiplier - scales the lapis/level cost
  • Multiple offers - whether this enchantment can appear in multiple slots
  • Level clamping - min/max levels that can be offered
  • Treasure flag - whether this is a treasure-only enchantment

Default values follow vanilla behavior:

  • Weight multiplier: 1.0 (no adjustment)
  • Bookshelves: 0-15 (available at all power levels)
  • Cost multiplier: 1.0 (vanilla scaling)
  • Single offer per enchantment
  • Level range: 1 to enchantment max level
  • Non-treasure (discoverable)
Since:
0.2.0