referenceEntryCodec

abstract fun <T> referenceEntryCodec(registry: Registry<T>): Codec<RegistryEntry.Reference<T>>

Creates an entry codec for a registry that works with RegistryEntry.Reference directly, allowing you to work with the methods of that class directly.

Return

Codec for RegistryEntry.Reference ot T

Author

fzzyhmstrs

Since

0.7.4

Parameters

T

type of object stored in the registry

registry

Registry Registry to build the codec off of.