NamespacedCompound

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val keys: Set<ResourceLocation>

Functions

Link copied to clipboard
fun contains(id: ResourceLocation): Boolean
fun contains(key: NamespacedKey): Boolean
fun contains(addon: Addon, key: String): Boolean
Link copied to clipboard
Link copied to clipboard
inline operator fun <T> get(id: ResourceLocation): T?
inline operator fun <T> get(key: NamespacedKey): T?
inline operator fun <T> get(namespace: String, key: String): T?
fun <T> get(type: KType, id: ResourceLocation): T?
fun <T> get(type: KType, key: NamespacedKey): T?
inline operator fun <T> get(addon: Addon, key: String): T?
fun <T> get(type: KType, namespace: String, key: String): T?
fun <T> get(type: KType, addon: Addon, key: String): T?
Link copied to clipboard
inline fun <T> getOrPut(id: ResourceLocation, defaultValue: () -> T): T
inline fun <T> getOrPut(key: NamespacedKey, defaultValue: () -> T): T
inline fun <T> getOrPut(namespace: String, key: String, defaultValue: () -> T): T
inline fun <T> getOrPut(addon: Addon, key: String, defaultValue: () -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun minusAssign(id: ResourceLocation)
operator fun minusAssign(key: NamespacedKey)
Link copied to clipboard
Link copied to clipboard
fun remove(id: ResourceLocation)
fun remove(key: NamespacedKey)
fun remove(namespace: String, key: String)
fun remove(addon: Addon, key: String)
Link copied to clipboard
inline operator fun <T> set(id: ResourceLocation, value: T)
inline operator fun <T> set(key: NamespacedKey, value: T)
inline operator fun <T> set(namespace: String, key: String, value: T)
fun set(type: KType, id: ResourceLocation, value: Any?)
fun set(type: KType, key: NamespacedKey, value: Any?)
inline operator fun <T> set(addon: Addon, key: String, value: T)
fun set(type: KType, namespace: String, key: String, value: Any?)
fun set(type: KType, addon: Addon, key: String, value: Any?)
Link copied to clipboard
open override fun toString(): String