net.minecraft.resources

public class HolderSetCodec<E>

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

alt
net.minecraft.resources.HolderSetCodec
net.minecraft.class_6898
net.minecraft.registry.entry.RegistryEntryListCodec
net.minecraft.resources.HolderSetCodec

Field summary

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

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<jq<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)
public static <E> com.mojang.serialization.Codec<HolderSet<E>>
a(aly<? extends kd<E>> arg0, com.mojang.serialization.Codec<jq<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)
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)
private static <E> com.mojang.serialization.DataResult<HolderSet<E>>
a(jr<E> arg0, ayk<E> arg1)
lookupTag(HolderGetter<E> arg0, TagKey<E> arg1)
method_58029(class_7871<E> arg0, class_6862<E> arg1)
get(RegistryEntryLookup<E> registry, TagKey<E> tag)
public <T> com.mojang.serialization.DataResult<T>
a(ju<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)
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)
private <T> com.mojang.serialization.DataResult<T>
b(ju<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)