Schnittstelle ConfigProvider


public interface ConfigProvider
Interface for mods to provide their settings categories.

Example usage:

public class MyModConfig implements ConfigProvider {
    @Override
    public List<SettingsCategory> categories() {
        return List.of(
            new SettingsCategory("general", "mymod.settings.general", List.of(
                new SettingsGroup("mymod.settings.display", List.of(
                    SettingsOption.toggle("showHud", "mymod.showHud", "mymod.showHud.tooltip",
                        () -> showHud, v -> showHud = v)
                ))
            ))
        );
    }
}
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    Returns the list of settings categories for this configuration.
  • Methodendetails

    • categories

      List<SettingsCategory> categories()
      Returns the list of settings categories for this configuration.