net.minecraft.resources

public final class RegistryFileCodec<E>

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

vf
net.minecraft.resources.RegistryFileCodec
net.minecraft.class_5381
net.minecraft.util.dynamic.RegistryElementCodec
net.minecraft.util.registry.RegistryKeyCodec
net.minecraft.server.v1_16_R3.RegistryFileCodec

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <E> RegistryFileCodec<E>
a(vj<? extends gm<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> codec)
func_241794_a_(RegistryKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1)
public static <E> com.mojang.serialization.Codec<List<Supplier<E>>>
b(vj<? extends gm<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>> arg0, com.mojang.serialization.Codec<E> arg1)
func_244328_b(RegistryKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1)
private static <E> RegistryFileCodec<E>
a(vj<? extends gm<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)
method_31192(RegistryKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1, boolean arg2)
func_244325_a(RegistryKey<? extends Registry<E>> arg0, com.mojang.serialization.Codec<E> arg1, boolean arg2)
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> arg0, com.mojang.serialization.DynamicOps<T> arg1, 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> arg0, T arg1)