Interface Configurable
- All Known Implementing Classes:
UltiToolsPlugin
public interface Configurable
Configurable data operation interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<AbstractConfigEntity> <T extends AbstractConfigEntity>
TGet config by config type.<T extends AbstractConfigEntity>
TGet config by config path and config type.<T extends AbstractConfigEntity>
voidsaveConfig(String path, Class<T> configType) Save config by config type.
-
Method Details
-
getAllConfigs
- Returns:
- All configs
-
getConfig
Get config by config type.- Type Parameters:
T- Config type- Parameters:
configType- Config type- Returns:
- Config
-
getConfig
Get config by config path and config type.- Type Parameters:
T- Config type- Parameters:
path- Config pathconfigType- Config type- Returns:
- Config
-
saveConfig
<T extends AbstractConfigEntity> void saveConfig(String path, Class<T> configType) throws IOException Save config by config type.- Type Parameters:
T- Config type- Parameters:
path- Config pathconfigType- Config type- Throws:
IOException- IOException
-