9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-06 15:51:50 +00:00

improve default configs

This commit is contained in:
XiaoMoMi
2024-09-08 02:09:49 +08:00
parent b6531636eb
commit b5015b71e2
5 changed files with 163 additions and 179 deletions

View File

@@ -27,12 +27,23 @@ import java.io.File;
*/
public interface ConfigLoader {
/**
* Loads a YAML configuration file from the specified file path.
*
* @param filePath the path to the configuration file
* @return the loaded {@link YamlDocument}
*/
YamlDocument loadConfig(String filePath);
/**
* Loads a YAML configuration file from the specified file path with a custom route separator.
*
* @param filePath the path to the configuration file
* @param routeSeparator the custom route separator character
* @return the loaded {@link YamlDocument}
*/
YamlDocument loadConfig(String filePath, char routeSeparator);
YamlDocument loadConfig(String filePath, char routeSeparator, UpdaterSettings settings);
/**
* Loads a YAML data file.
*