Interface EnchantTableConfiguration.Builder

All Known Implementing Classes:
EnchantTableConfigurationBuilder
Enclosing interface:
EnchantTableConfiguration

public static interface EnchantTableConfiguration.Builder
Builder for constructing table configurations.
Since:
0.3.0
  • Method Details

    • weightMultiplier

      @NotNull @NotNull EnchantTableConfiguration.Builder weightMultiplier(double multiplier)
      Sets the weight multiplier for this enchantment.
      Parameters:
      multiplier - the weight multiplier (must be > 0)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • minBookshelves

      @NotNull @NotNull EnchantTableConfiguration.Builder minBookshelves(int min)
      Sets the minimum bookshelves required.
      Parameters:
      min - the minimum bookshelves (must be >= 0)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • maxBookshelves

      @NotNull @NotNull EnchantTableConfiguration.Builder maxBookshelves(int max)
      Sets the maximum bookshelves allowed.
      Parameters:
      max - the maximum bookshelves (must be >= min)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • costMultiplier

      @NotNull @NotNull EnchantTableConfiguration.Builder costMultiplier(double multiplier)
      Sets the cost multiplier.
      Parameters:
      multiplier - the cost multiplier (must be > 0)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • allowMultiple

      @NotNull @NotNull EnchantTableConfiguration.Builder allowMultiple(boolean allow)
      Sets whether multiple offers are allowed.
      Parameters:
      allow - true to allow multiple offers
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • tableMinLevel

      @NotNull @NotNull EnchantTableConfiguration.Builder tableMinLevel(int level)
      Sets the minimum enchantment level for table offers.
      Parameters:
      level - the minimum level (must be >= 1)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • tableMaxLevel

      @NotNull @NotNull EnchantTableConfiguration.Builder tableMaxLevel(int level)
      Sets the maximum enchantment level for table offers.
      Parameters:
      level - the maximum level (must be >= min)
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • treasure

      @NotNull @NotNull EnchantTableConfiguration.Builder treasure(boolean treasure)
      Sets whether this is a treasure enchantment.
      Parameters:
      treasure - true for treasure behavior
      Returns:
      this builder for chaining
      Since:
      0.3.0
    • build

      @NotNull @NotNull EnchantTableConfiguration build()
      Builds and returns the table configuration.
      Returns:
      the completed configuration
      Since:
      0.3.0