net.minecraft.resources

public class HolderSetCodec<E>

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

aau
net.minecraft.resources.HolderSetCodec
net.minecraft.class_6898
net.minecraft.util.registry.RegistryEntryListCodec
net.minecraft.src.C_203250_
net.minecraft.resources.HolderSetCodec

Field summary

Modifier and TypeField
private final ResourceKey<? extends Registry<E>>
a
registryKey
field_36480
registry
f_206655_
private final com.mojang.serialization.Codec<Holder<E>>
b
elementCodec
field_36481
entryCodec
f_206656_
private final com.mojang.serialization.Codec<List<Holder<E>>>
c
homogenousListCodec
field_36482
directEntryListCodec
f_206657_
private final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<TagKey<E>, List<Holder<E>>>>
d
registryAwareCodec
field_36483
entryListStorageCodec
f_206658_

Constructor summary

ModifierConstructor
private (ResourceKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<Holder<E>> entryCodec, boolean alwaysSerializeAsList)

Method summary

Modifier and TypeMethod
private static <E> com.mojang.serialization.Codec<List<Holder<E>>>
a(com.mojang.serialization.Codec<hc<E>> arg0, boolean arg1)
homogenousList(com.mojang.serialization.Codec<Holder<E>> arg0, boolean arg1)
method_40382(com.mojang.serialization.Codec<class_6880<E>> arg0, boolean arg1)
createDirectEntryListCodec(com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList)
m_206667_(com.mojang.serialization.Codec<C_203228_<E>> p_206668_, boolean p_206669_)
public static <E> com.mojang.serialization.Codec<HolderSet<E>>
a(aba<? extends hm<E>> arg0, com.mojang.serialization.Codec<hc<E>> arg1, boolean arg2)
create(ResourceKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<Holder<E>> arg1, boolean arg2)
method_40388(class_5321<? extends class_2378<E>> arg0, com.mojang.serialization.Codec<class_6880<E>> arg1, boolean arg2)
create(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<RegistryEntry<E>> entryCodec, boolean alwaysSerializeAsList)
m_206685_(C_5264_<? extends C_4705_<E>> p_206686_, com.mojang.serialization.Codec<C_203228_<E>> p_206687_, boolean p_206688_)
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<HolderSet<E>, T>>
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> ops, T input)
decode(com.mojang.serialization.DynamicOps<T> p_206697_, T arg1)
public <T> com.mojang.serialization.DataResult<T>
a(he<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(HolderSet<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_40384(class_6885<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(RegistryEntryList<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(C_203233_<E> p_206675_, com.mojang.serialization.DynamicOps<T> p_206676_, T arg2)
private <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<HolderSet<E>, T>>
a(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decodeWithoutRegistry(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
method_40383(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decodeDirect(com.mojang.serialization.DynamicOps<T> ops, T input)
m_206670_(com.mojang.serialization.DynamicOps<T> p_206672_, T arg1)
private <T> com.mojang.serialization.DataResult<T>
b(he<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encodeWithoutRegistry(HolderSet<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_40389(class_6885<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encodeDirect(RegistryEntryList<E> entryList, com.mojang.serialization.DynamicOps<T> ops, T prefix)
m_206689_(C_203233_<E> p_206691_, com.mojang.serialization.DynamicOps<T> p_206692_, T arg2)