net.minecraft.registry.entry

public final class RegistryElementCodec<E>

implements com.mojang.serialization.Codec<RegistryEntry<E>>

net.minecraft.resources.RegistryFileCodec
net.minecraft.resources.RegistryFileCodec
net.minecraft.class_5381
net.minecraft.registry.entry.RegistryElementCodec

Field summary

Modifier and TypeField
private final RegistryKey<? extends Registry<E>>
registryKey
registryKey
field_25507
registryRef
private final com.mojang.serialization.Codec<E>
elementCodec
elementCodec
field_25508
elementCodec
private final boolean
allowInline
allowInline
field_26758
allowInlineDefinitions

Constructor summary

ModifierConstructor
private (RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions)

Method summary

Modifier and TypeMethod
public static <E> RegistryElementCodec<E>
create(ResourceKey<? extends Registry<E>> registryKey, com.mojang.serialization.Codec<E> elementCodec)
create(ResourceKey<? extends Registry<E>> registryKey, com.mojang.serialization.Codec<E> elementCodec)
method_29749(class_5321<? extends class_2378<E>> arg0, com.mojang.serialization.Codec<E> arg1)
of(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec)
public static <E> RegistryElementCodec<E>
create(ResourceKey<? extends Registry<E>> registryKey, com.mojang.serialization.Codec<E> elementCodec, boolean allowInline)
create(ResourceKey<? extends Registry<E>> registryKey, com.mojang.serialization.Codec<E> elementCodec, boolean allowInline)
method_31192(class_5321<? extends class_2378<E>> arg0, com.mojang.serialization.Codec<E> arg1, boolean arg2)
of(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean allowInlineDefinitions)
public <T> com.mojang.serialization.DataResult<T>
encode(Holder<E> input, com.mojang.serialization.DynamicOps<T> ops, T prefix)
encode(Holder<E> input, com.mojang.serialization.DynamicOps<T> ops, T prefix)
method_29748(class_6880<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(RegistryEntry<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<RegistryEntry<E>, T>>
decode(com.mojang.serialization.DynamicOps<T> ops, T input)
decode(com.mojang.serialization.DynamicOps<T> ops, T input)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> ops, T input)