Click or drag to resize
Configuration Methods

The Configuration type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDoesKeyExist
Checks whether a given key exists in the configuration for your mod. Note that this will only be the case after it has ben set once.
Public methodStatic memberGetBool
Gets a bool configuration value stored by your mod. Returns defaultVal if the specified key does not exist for your mod or the value stored at the specified key is not a bool.
Public methodStatic memberGetDouble
Gets a double configuration value stored by your mod. Returns defaultVal if the specified key does not exist for your mod or the value stored at the specified key is not a double.
Public methodStatic memberGetFloat
Gets a float configuration value stored by your mod. Returns defaultVal if the specified key does not exist for your mod or the value stored at the specified key is not a float.
Public methodStatic memberGetInt
Gets an integer configuration value stored by your mod. Returns defaultVal if the specified key does not exist for your mod or the value stored at the specified key is not an integer.
Public methodStatic memberGetKeys
Gets all keys currently stored in the configuration of your mod.
Public methodStatic memberGetString
Gets a string configuration value stored by your mod. Returns defaultVal if the specified key does not exist for your mod or the value stored at the specified key is not a string.
Public methodStatic memberRemoveKey
Removes the specified key and its associated value from the configuration.
Public methodStatic memberSave
Saves the configuration of your mod to disk.
Public methodStatic memberSetBool
Sets a bool in the configuration of your mod.
Public methodStatic memberSetDouble
Sets a double in the configuration of your mod.
Public methodStatic memberSetFloat
Sets a float in the configuration of your mod.
Public methodStatic memberSetInt
Sets an integer in the configuration of your mod.
Public methodStatic memberSetString
Sets a string in the configuration of your mod.
Top
See Also