Package-level declarations

Types

Link copied to clipboard
object Configs
Link copied to clipboard
abstract class ConfigurableRegistryElementBuilder<T : Any>(registry: WritableRegistry<in T>, id: Key) : RegistryElementBuilder<T>
Link copied to clipboard

Properties

Link copied to clipboard
val MAIN_CONFIG: Provider<CommentedConfigurationNode>

Functions

Link copied to clipboard
inline fun <T : Any> Provider<ConfigurationNode>.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> Provider<ConfigurationNode>.entry(vararg path: String): Provider<T>

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

fun <T : Any> Provider<ConfigurationNode>.entry(type: Type, vararg paths: Array<String>): Provider<T>
fun <T : Any> Provider<ConfigurationNode>.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> Provider<ConfigurationNode>.entry(type: Type, vararg path: String): Provider<T>
fun <T : Any> Provider<ConfigurationNode>.entry(type: KType, vararg path: String): Provider<T>

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

Link copied to clipboard
inline fun <T : Any> Provider<ConfigurationNode>.entryOrElse(default: T?, vararg paths: Array<String>): Provider<T>
inline fun <T : Any> Provider<ConfigurationNode>.entryOrElse(default: Provider<T>?, vararg paths: Array<String>): Provider<T>

Gets an entry Provider for a value of type T under the first existing path from paths, using default as fallback, or requiring config presence if null.

inline fun <T : Any> Provider<ConfigurationNode>.entryOrElse(default: T?, vararg path: String): Provider<T>
inline fun <T : Any> Provider<ConfigurationNode>.entryOrElse(default: Provider<T>?, vararg path: String): Provider<T>

Gets an entry Provider for a value of type T under path, using default as fallback, or requiring config presence if null.

Link copied to clipboard
@JvmName(name = "weakNodeTyped")
fun <C : ScopedConfigurationNode<C>> Provider<C>.node(vararg path: String): Provider<C>
fun Provider<ConfigurationNode>.node(vararg path: String): Provider<ConfigurationNode>

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

Link copied to clipboard
inline fun <T : Any> Provider<ConfigurationNode>.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> Provider<ConfigurationNode>.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> Provider<ConfigurationNode>.optionalEntry(type: Type, vararg paths: Array<String>): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.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> Provider<ConfigurationNode>.optionalEntry(type: Type, vararg path: String): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.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
inline fun <T : Any> Provider<ConfigurationNode>.strongEntry(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> Provider<ConfigurationNode>.strongEntry(vararg path: String): Provider<T>

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

fun <T : Any> Provider<ConfigurationNode>.strongEntry(type: Type, vararg paths: Array<String>): Provider<T>
fun <T : Any> Provider<ConfigurationNode>.strongEntry(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> Provider<ConfigurationNode>.strongEntry(type: Type, vararg path: String): Provider<T>
fun <T : Any> Provider<ConfigurationNode>.strongEntry(type: KType, vararg path: String): Provider<T>

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

Link copied to clipboard
inline fun <T : Any> Provider<ConfigurationNode>.strongEntryOrElse(default: T?, vararg paths: Array<String>): Provider<T>
inline fun <T : Any> Provider<ConfigurationNode>.strongEntryOrElse(default: Provider<T>?, vararg paths: Array<String>): Provider<T>

Gets an entry Provider for a value of type T under the first existing path from paths, using default as fallback, or requiring config presence if null.

inline fun <T : Any> Provider<ConfigurationNode>.strongEntryOrElse(default: T?, vararg path: String): Provider<T>
inline fun <T : Any> Provider<ConfigurationNode>.strongEntryOrElse(default: Provider<T>?, vararg path: String): Provider<T>

Gets an entry Provider for a value of type T under path, using default as fallback, or requiring config presence if null.

Link copied to clipboard
@JvmName(name = "nodeTyped")
fun <C : ScopedConfigurationNode<C>> Provider<C>.strongNode(vararg path: String): Provider<C>
fun Provider<ConfigurationNode>.strongNode(vararg path: String): Provider<ConfigurationNode>

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

Link copied to clipboard
inline fun <T : Any> Provider<ConfigurationNode>.strongOptionalEntry(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> Provider<ConfigurationNode>.strongOptionalEntry(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> Provider<ConfigurationNode>.strongOptionalEntry(type: Type, vararg paths: Array<String>): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.strongOptionalEntry(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> Provider<ConfigurationNode>.strongOptionalEntry(type: Type, vararg path: String): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.strongOptionalEntry(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.