Interface IQuickConfigMenuFactory


@NonExtendable public interface IQuickConfigMenuFactory
Creates customizable menus from this mod's registered config screen entries. Menus retain the entries' configured editors and save behavior. Create menus on the client thread after plugin registration has finished.

Saved choices use registered category and value names. Keep these names stable across launches. Menus with the same ordered default and additional paths share saved choices.

Since:
0.7.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.network.chat.Component title, List<String> defaults, List<String> additional)
    Creates a menu from registered category.setting paths.
    createBuilder(net.minecraft.network.chat.Component title)
    Starts a menu definition that accepts paths, MezzConfig values, and screen values directly.
  • Method Details

    • create

      IQuickConfigMenu create(net.minecraft.network.chat.Component title, List<String> defaults, List<String> additional)
      Creates a menu from registered category.setting paths.
      Parameters:
      title - localized menu title
      defaults - setting paths shown initially, in order
      additional - setting paths available through Customize, initially hidden
      Returns:
      a closed menu
      Throws:
      IllegalArgumentException - if a setting path is unknown, ambiguous, duplicated, or server-owned
      IllegalStateException - if this mod has no registered config screen
      Since:
      0.7.0
    • createBuilder

      IQuickConfigMenuBuilder createBuilder(net.minecraft.network.chat.Component title)
      Starts a menu definition that accepts paths, MezzConfig values, and screen values directly.
      Parameters:
      title - localized menu title
      Returns:
      an empty menu builder
      Since:
      0.7.0