Package pro.gravit.launcher.config
Interface JsonConfigurableInterface<T>
- All Known Implementing Classes:
JsonConfigurable,SimpleConfig,SimpleConfigurable
public interface JsonConfigurableInterface<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleangetPath()getType()default voiddefault voidloadConfig(com.google.gson.Gson gson, Path configPath) default voidloadConfig(Path configPath) default voiddefault voidresetConfig(Path newPath) default voiddefault voidsaveConfig(com.google.gson.Gson gson, Path configPath) default voidsaveConfig(Path configPath) voiddefault Stringdefault StringtoJsonString(com.google.gson.Gson gson)
-
Method Details
-
saveConfig
- Throws:
IOException
-
loadConfig
- Throws:
IOException
-
saveConfig
- Throws:
IOException
-
toJsonString
-
toJsonString
-
loadConfig
- Throws:
IOException
-
saveConfig
- Throws:
IOException
-
loadConfig
- Throws:
IOException
-
resetConfig
- Throws:
IOException
-
resetConfig
- Throws:
IOException
-
generateConfigIfNotExists
- Throws:
IOException
-
generateConfigIfNotExists
- Throws:
IOException
-
getConfig
T getConfig() -
setConfig
-
getDefaultConfig
T getDefaultConfig() -
getPath
Path getPath() -
getType
Type getType()
-