net.minecraft.resources

public final class RegistryFileCodec<E>

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

yb
net.minecraft.resources.RegistryFileCodec
net.minecraft.class_5381
net.minecraft.util.dynamic.RegistryElementCodec
net.minecraft.src.C_5255_
net.minecraft.resources.RegistryFileCodec

Field summary

Modifier and TypeField
private final ResourceKey<? extends Registry<E>>
a
registryKey
field_25507
registryRef
f_135570_
private final com.mojang.serialization.Codec<E>
b
elementCodec
field_25508
elementCodec
f_135571_
private final boolean
c
allowInline
field_26758
allowInlineDefinitions
f_135572_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <E> RegistryFileCodec<E>
a(yg<? extends gx<E>> arg0, com.mojang.serialization.Codec<E> arg1)
create(ResourceKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1)
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)
m_135589_(C_5264_<? extends C_4705_<E>> p_135590_, com.mojang.serialization.Codec<E> p_135591_)
public static <E> com.mojang.serialization.Codec<List<Supplier<E>>>
b(yg<? extends gx<E>> arg0, com.mojang.serialization.Codec<E> arg1)
homogeneousList(ResourceKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1)
method_31194(class_5321<? extends class_2378<E>> arg0, com.mojang.serialization.Codec<E> arg1)
method_31194(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec)
m_135600_(C_5264_<? extends C_4705_<E>> p_135601_, com.mojang.serialization.Codec<E> p_135602_)
private static <E> RegistryFileCodec<E>
a(yg<? extends gx<E>> arg0, com.mojang.serialization.Codec<E> arg1, boolean arg2)
create(ResourceKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1, boolean arg2)
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)
m_135592_(C_5264_<? extends C_4705_<E>> p_135593_, com.mojang.serialization.Codec<E> p_135594_, boolean p_135595_)
public <T> com.mojang.serialization.DataResult<T>
a(Supplier<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(Supplier<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_29748(Supplier<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(Supplier<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(Supplier<E> p_135587_, com.mojang.serialization.DynamicOps<T> p_135588_, T arg2)
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Supplier<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_135609_, T arg1)