JConfig

interface JConfig(source)

Gets a value from the config.json file. Also creates a new JConfig instance.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val entries: Set<JsonEntry>

Gets all the entries in the config file.

Functions

Link copied to clipboard
abstract operator fun contains(key: String): Boolean

Used to check if the value is present

Link copied to clipboard
abstract operator fun get(key: String): JsonNode?
open operator fun get(key: String, defaultValue: Any): Any

Gets the value of the key from the config file.

Link copied to clipboard
open fun getAsJConfigObject(key: String, defaultValue: Any): Any

Gets the value of the key from the config file.

Link copied to clipboard
abstract operator fun set(key: String, value: JConfigObject)
abstract operator fun set(key: String, value: Any)

Used to set a value in the config file.