Package net.mezzdev.config.api
Class Configs
java.lang.Object
net.mezzdev.config.api.Configs
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 Summary
Modifier and TypeMethodDescriptionstatic IConfigRegistrationGet a registration for config schemas and sort orders owned by a mod.static @Unmodifiable Collection<? extends IConfigSchema> Get all config schemas that have been built and registered.
-
Method Details
-
forMod
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
Get all config schemas that have been built and registered.- Returns:
- an unmodifiable snapshot of registered schemas
- Since:
- 0.3.0
-