Package net.mezzdev.config.gui.api
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 TypeMethodDescriptionCreates a menu from registeredcategory.settingpaths.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 registeredcategory.settingpaths.- Parameters:
title- localized menu titledefaults- setting paths shown initially, in orderadditional- setting paths available through Customize, initially hidden- Returns:
- a closed menu
- Throws:
IllegalArgumentException- if a setting path is unknown, ambiguous, duplicated, or server-ownedIllegalStateException- if this mod has no registered config screen- Since:
- 0.7.0
-
createBuilder
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
-