MagicSettings

open class MagicSettings

Author

Tartiflette

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun clamp255(x: Int): Int
Link copied to clipboard
open fun getBoolean(modId: String, id: String): Boolean
Gets a single boolean value from data/config/modSettings.json.
Link copied to clipboard
open fun getColorMap(modId: String, id: String): Map<String, Color>
Gets a Mapfrom data/config/modSettings.json.
Link copied to clipboard
open fun getColorRGB(modId: String, id: String): Color
Gets a single Color without alpha from data/config/modSettings.json.
Link copied to clipboard
open fun getColorRGBA(modId: String, id: String): Color
Gets a single Color with alpha from data/config/modSettings.json.
Link copied to clipboard
open fun getFloat(modId: String, id: String): Float
Gets a single float value from data/config/modSettings.json.
Link copied to clipboard
open fun getFloatMap(modId: String, id: String): Map<String, Float>
Gets a Mapfrom data/config/modSettings.json.
Link copied to clipboard
open fun getInteger(modId: String, id: String): Integer
Gets a single integer value from data/config/modSettings.json.
Link copied to clipboard
open fun getList(modId: String, id: String): List<String>
Gets a list of Strings from data/config/modSettings.json.
Link copied to clipboard
open fun getString(modId: String, id: String): String
Gets a single string value from data/config/modSettings.json.
Link copied to clipboard
open fun getStringMap(modId: String, id: String): Map<String, String>
Gets a Mapfrom data/config/modSettings.json.
Link copied to clipboard
open fun loadModSettings()
Link copied to clipboard
open fun toColor3(in: String): Color
Link copied to clipboard
open fun toColor4(in: String): Color

Properties

Link copied to clipboard
open var modSettings: JSONObject