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 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 patterncheckAndRestore
Ensures that config has all the properties the data pattern contains, if not, puts default values to match the pattern
org.json.JSONObject instance to be used as data 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
java.util.ArrayList instance containing all the names in the current config file
option name, supports multi-layer calls, separated by '.'
number config value specified in config or 0 if no value was specified
option name, supports multi-layer calls, separated by '.'
string config value specified in config or null if no value was specified
option name, supports multi-layer calls, separated by '.'
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