2022-08-26 20:51:00 +02:00
|
|
|
package io.gitlab.jfronny.libjf.config.api.v1;
|
2022-08-21 22:34:55 +02:00
|
|
|
|
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.util.*;
|
|
|
|
|
2022-08-27 20:17:13 +02:00
|
|
|
/**
|
|
|
|
* This class represents a configuration. An instance may be obtained through ConfigHolder or the DSL. Do not implement manually!
|
|
|
|
*/
|
2022-08-21 22:34:55 +02:00
|
|
|
public interface ConfigInstance extends ConfigCategory {
|
|
|
|
static ConfigInstance get(String modId) {
|
|
|
|
return ConfigHolder.getInstance().get(modId);
|
|
|
|
}
|
|
|
|
void load();
|
|
|
|
void write();
|
|
|
|
Optional<Path> getFilePath();
|
|
|
|
}
|