DynamicRegistryReference

A dynamic reference to a value in a registry.

This differs from RegistryReference in that the value may be in any registry, or none at all, and retrieving the value requires the holder to look in.

Types

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

Functions

Link copied to clipboard
abstract fun get(holder: RegistryHolder): T

Gets the value this reference points to in the registry held by the given holder.

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

Properties

Link copied to clipboard
abstract val key: ResourceKey<T>

The key the value is mapped to.