RegistryReference

A reference to a value in a registry.

This allows underlying registry values to be modified dynamically without needing to update all the old values.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Functions

Link copied to clipboard
abstract override fun get(): T

Gets the value this reference points to in the registry.

Link copied to clipboard
open override fun key(): Key

Properties

Link copied to clipboard
@get:JvmName(name = "key")
abstract val key: ResourceKey<T>

The key the value is mapped to.