Creates new Config instance using specified file
[[java.io.File]] instance of the file to use
Creates new Config instance using specified file
path to configuration file
Same as Config.get
Ensures that config has all the properties the data pattern contains, if not, puts default values to match the pattern
string representation of JSON object representing the data pattern
Ensures that config has all the properties the data pattern contains, if not, puts default values to match the pattern
javascript object representing the data pattern checkAndRestore
Ensures that config has all the properties the data pattern contains, if not, puts default values to match the pattern
Gets property from the config
Example:
config.get("generation.ore_copper.max_height");
option name, supports multi-layer calls, separated by '.'
Config instance with current config as parent if the property is object, [[org.json.JSONArray]] instance if the property is an array, raw type if the property is of that raw type, null otherwise
option name, supports multi-layer calls, separated by '.'
boolean config value specified in config or false if no value was specified
option name, supports multi-layer calls, separated by '.'
double number of value by given name from the config, or 0.0 if no value was specified
option name, supports multi-layer calls, separated by '.'
floating point number of value by given name from the config, or 0.0 if no value was specified
option name, supports multi-layer calls, separated by '.'
integer of value by given name from the config, or 0 if no value was specified
[[java.util.ArrayList]] instance containing all the names in the current config file
option name, supports multi-layer calls, separated by '.'
java number object instance, containing numeric value by given name from the config, or 0 if no value was specified
option name, supports multi-layer calls, separated by '.'
string by given name from the config, or null if no value was specified
editable Config.ConfigValue instance that can be used to manipulate this config option separately
Writes configuration JSON to the file
Sets config value. Do not use [[org.json.JSONObject]] instances to create nested objects, consider using dot-separated names instead
option name, supports multi-layer calls, separated by '.'
value, may be [[org.json.JSONArray]] instance, [[org.json.JSONObject]] instance or raw data type
Generated using TypeDoc
Json configuration file reading/writing utility