Class Configs

java.lang.Object
net.mezzdev.config.api.Configs

public final class Configs extends Object
Entry point for registering configs with MezzConfig.

Get an IConfigRegistration with forMod(String), then use it to create config schemas or persistent sort orders. Config screens and other integrations can discover built schemas with getSchemas().

Since:
0.3.0
  • Method Details

    • forMod

      public static IConfigRegistration forMod(String modId)
      Get a registration for config schemas and sort orders owned by a mod.
      Parameters:
      modId - mod id that owns the registered configs
      Returns:
      config registration bound to this mod
      Since:
      0.3.0
    • getSchemas

      public static @Unmodifiable Collection<? extends IConfigSchema> getSchemas()
      Get all config schemas that have been built and registered.
      Returns:
      an unmodifiable snapshot of registered schemas
      Since:
      0.3.0