ConfigProvider

open class ConfigProvider : AbstractProvider<CommentedConfigurationNode>

Functions

Link copied to clipboard
open override fun addChild(provider: Provider<*>)
Link copied to clipboard
inline fun <T : Any> entry(vararg paths: Array<String>): Provider<T>

Gets an entry Provider for a value of type T under the first existing path from paths.

inline fun <T : Any> entry(vararg path: String): Provider<T>

Gets an entry Provider for a value of type T under path.

fun <T : Any> entry(type: Type, vararg paths: Array<String>): Provider<T>
fun <T : Any> entry(type: KType, vararg paths: Array<String>): Provider<T>

Gets an entry Provider for a value of type under the first existing path from paths.

fun <T : Any> entry(type: Type, vararg path: String): Provider<T>
fun <T : Any> entry(type: KType, vararg path: String): Provider<T>

Gets an entry Provider for a value of type under path.

Link copied to clipboard
open override fun get(): CommentedConfigurationNode
Link copied to clipboard
open operator fun <X> getValue(thisRef: X?, property: KProperty<*>?): CommentedConfigurationNode
Link copied to clipboard
fun node(vararg path: String): ConfigProvider

Gets or creates a ConfigProvider for a child node under path.

Link copied to clipboard
inline fun <T : Any> optionalEntry(vararg paths: Array<String>): Provider<T?>

Gets an optional entry Provider for a value of type T under the first existing path from paths, whose value will be null if no entry exists or could not be deserialized to T.

inline fun <T : Any> optionalEntry(vararg path: String): Provider<T?>

Gets an optional entry Provider for a value of type T under path, whose value will be null if the entry does not exist or could not be deserialized to T.

fun <T : Any> optionalEntry(type: Type, vararg paths: Array<String>): Provider<T?>
fun <T : Any> optionalEntry(type: KType, vararg paths: Array<String>): Provider<T?>

Gets an optional entry Provider for a value of type under the first existing path from paths, whose value will be null if no entry exists or could not be deserialized to type.

fun <T : Any> optionalEntry(type: Type, vararg path: String): Provider<T?>
fun <T : Any> optionalEntry(type: KType, vararg path: String): Provider<T?>

Gets an optional entry Provider for a value of type under path, whose value will be null if the entry does not exist or could not be deserialized to type.

Link copied to clipboard
open override fun removeChild(provider: Provider<*>)
Link copied to clipboard
open override fun set(value: CommentedConfigurationNode, ignoredChildren: Set<Provider<*>>)
Link copied to clipboard
open operator fun <X> setValue(thisRef: X?, property: KProperty<*>, value: CommentedConfigurationNode)
Link copied to clipboard
open override fun subscribe(action: (CommentedConfigurationNode) -> Unit)
Link copied to clipboard
open override fun <R : Any> subscribeWeak(owner: R, action: (R, CommentedConfigurationNode) -> Unit)
Link copied to clipboard
open override fun unsubscribe(action: (CommentedConfigurationNode) -> Unit)
Link copied to clipboard
open override fun <R : Any> unsubscribeWeak(owner: R)
open override fun <R : Any> unsubscribeWeak(owner: R, action: (R, CommentedConfigurationNode) -> Unit)
Link copied to clipboard
open override fun update()