Package com.ewyboy.worldstripper.json
Class ConfigLoader
java.lang.Object
com.ewyboy.worldstripper.json.ConfigLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TapplyOverrides(T config, Map<String, Object> overrides) static <T> TcreateDefaultConfig(Class<T> configClass) static <T> TloadConfig(Class<T> configClass, File configFile) static <T> voidsaveConfig(T config, File configFile)
-
Constructor Details
-
ConfigLoader
public ConfigLoader()
-
-
Method Details
-
loadConfig
-
saveConfig
-
createDefaultConfig
-
applyOverrides
public static <T> T applyOverrides(T config, Map<String, Object> overrides) throws NoSuchFieldException, IllegalAccessException
-