net.minecraft.resources

public final class RegistryDataPackCodec<E>

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

uc
net.minecraft.resources.RegistryDataPackCodec
net.minecraft.class_5380
net.minecraft.util.dynamic.RegistryCodec
net.minecraft.util.registry.SimpleRegistryCodec
net.minecraft.server.v1_16_R1.RegistryDataPackCodec

Field summary

Modifier and TypeField
private final com.mojang.serialization.Codec<MappedRegistry<E>>
a
directCodec
field_25504
delegate
field_240858_a_
private final ResourceKey<Registry<E>>
b
registryKey
field_25505
registryRef
field_240859_b_
private final com.mojang.serialization.MapCodec<E>
c
elementCodec
field_25506
elementCodec
field_240860_c_

Constructor summary

ModifierConstructor
private (ResourceKey<Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.MapCodec<E> arg2)

Method summary

Modifier and TypeMethod
public static <E> RegistryDataPackCodec<E>
a(ug<gl<E>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<E> arg2)
create(ResourceKey<Registry<E>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<E> arg2)
method_29745(class_5321<class_2378<E>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<E> arg2)
of(RegistryKey<Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.MapCodec<E> arg2)
func_241793_a_(RegistryKey<Registry<E>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<E> arg2)
public <T> com.mojang.serialization.DataResult<T>
a(gh<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(MappedRegistry<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_29744(class_2370<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(SimpleRegistry<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(SimpleRegistry<E> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<MappedRegistry<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)