package pro.gravit.launcher.modules; import pro.gravit.launcher.config.SimpleConfigurable; import java.nio.file.Path; public interface ModulesConfigManager { Path getModuleConfig(String moduleName); Path getModuleConfig(String moduleName, String configName); Path getModuleConfigDir(String moduleName); SimpleConfigurable getConfigurable(Class tClass, Path configPath); default SimpleConfigurable getConfigurable(Class tClass, String moduleName) { return getConfigurable(tClass, getModuleConfig(moduleName)); } default SimpleConfigurable getConfigurable(Class tClass, String moduleName, String configName) { return getConfigurable(tClass, getModuleConfig(moduleName, configName)); } }