Interface YamlManager
-
public interface YamlManager
新的 Config 管理器
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends BungeeConfiguration>
TgetConfig(String yml)<T extends BungeeConfiguration>
TgetConfigAs(Class<T> config)booleanreloadConfigs()重載所有文件
-
-
-
Method Detail
-
reloadConfigs
boolean reloadConfigs()
重載所有文件- Returns:
- 成功
-
getConfig
<T extends BungeeConfiguration> T getConfig(String yml)
- Type Parameters:
T- 映射接口- Parameters:
yml- 文件名稱- Returns:
- 映射物件
-
getConfigAs
<T extends BungeeConfiguration> T getConfigAs(Class<T> config)
- Type Parameters:
T- 映射接口- Parameters:
config- 映射物件類- Returns:
- 映射物件
-
-