ServiceRegistry

interface ServiceRegistry

Stores and resolves shared services between mods.

Functions

Link copied to clipboard
abstract fun <T : Any> get(key: ServiceKey<T>): T?
Link copied to clipboard
abstract fun keys(): Set<ServiceKey<*>>
Link copied to clipboard
abstract fun <T : Any> register(key: ServiceKey<T>, service: T)
Link copied to clipboard
abstract fun <T : Any> unregister(key: ServiceKey<T>)