buildRegistryEntryAttachment
fun <R, V : Any> buildRegistryEntryAttachment( registry: Registry<R>, id: Identifier, valueClass: KClass<V>, codec: Codec<V>, block: RegistryEntryAttachment.Builder<R, V>.() -> Unit = {}): RegistryEntryAttachment<R, V>
Content copied to clipboard
Create a new RegistryEntryAttachment for the given registry with the given information. Shorthands are available for primitive types and Strings.