Interface IQuickConfigMenuBuilder


@NonExtendable public interface IQuickConfigMenuBuilder
Defines a quick menu's default and additional settings in insertion order. Paths, MezzConfig values, and screen values can be mixed in either group. Screen values match registered entries by IConfigScreenValue.getIdentityKey().
Since:
0.6.4
  • Method Details

    • addDefault

      IQuickConfigMenuBuilder addDefault(String path)
      Adds a setting shown initially.
      Parameters:
      path - registered category.setting path
      Returns:
      this builder
      Since:
      0.6.4
    • addDefault

      IQuickConfigMenuBuilder addDefault(net.mezzdev.config.api.value.IConfigValue<?> value)
      Adds a MezzConfig value shown initially.
      Parameters:
      value - a value registered at a single config screen path
      Returns:
      this builder
      Since:
      0.6.4
    • addDefault

      Adds a screen value shown initially.
      Parameters:
      value - a screen value registered at a single config screen path
      Returns:
      this builder
      Since:
      0.6.4
    • addAdditional

      IQuickConfigMenuBuilder addAdditional(String path)
      Adds a setting available through Customize, initially hidden.
      Parameters:
      path - registered category.setting path
      Returns:
      this builder
      Since:
      0.6.4
    • addAdditional

      IQuickConfigMenuBuilder addAdditional(net.mezzdev.config.api.value.IConfigValue<?> value)
      Adds a MezzConfig value available through Customize, initially hidden.
      Parameters:
      value - a value registered at a single config screen path
      Returns:
      this builder
      Since:
      0.6.4
    • addAdditional

      Adds a screen value available through Customize, initially hidden.
      Parameters:
      value - a screen value registered at a single config screen path
      Returns:
      this builder
      Since:
      0.6.4
    • build

      Creates the menu from the configured settings. Call on the client thread after plugin registration has finished.
      Returns:
      a closed menu
      Throws:
      IllegalArgumentException - if a setting is unknown, ambiguous, duplicated, or server-owned
      IllegalStateException - if this mod has no registered config screen
      Since:
      0.6.4