
net.chestmc.common.extensions.Registries.kt Maven / Gradle / Ivy
package net.chestmc.common.extensions
import net.chestmc.common.registry.*
/**
* Creates a new empty registry specified by the key [K] and value [V].
*/
fun newRegistry(): Registry = StandardRegistry()
/**
* Creates a new empty immutable registry specified by the key [K] and value [V].
*/
fun newImmutableRegistry(): Registry = ImmutableRegistry()
/**
* Creates a new empty concurrent registry specified by the key [K] and value [V].
*/
fun newConcurrentRegistry(): Registry = ConcurrentRegistry()
/**
* Creates a new empty concurrent registry specified by the key [K] and value [V].
*/
fun newExpiringRegistry(): ExpiringRegistry = ExpiringRegistry()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy