net.minecraft.resources

public final class RegistryFileCodec<E>

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

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

Field summary

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

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(aku<? extends ke<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)
public static <E> RegistryFileCodec<E>
a(aku<? extends ke<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)
public <T> com.mojang.serialization.DataResult<T>
a(jr<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)
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)