net.minecraft.resources

public final class RegistryFileCodec<E>

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

aes
net.minecraft.resources.RegistryFileCodec
net.minecraft.class_5381
net.minecraft.registry.entry.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(aev<? extends hq<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> RegistryFileCodec<E>
a(aev<? extends hq<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(he<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(Holder<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
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)
encode(C_203228_<E> p_206717_, com.mojang.serialization.DynamicOps<T> p_206718_, T arg2)
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Holder<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)