net.minecraft.resources

public final class RegistryFixedCodec<E>

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

aks
net.minecraft.resources.RegistryFixedCodec
net.minecraft.class_6899
net.minecraft.registry.entry.RegistryFixedCodec
net.minecraft.resources.RegistryFixedCodec

Field summary

Modifier and TypeField
private final ResourceKey<? extends Registry<E>>
a
registryKey
field_36484
registry

Constructor summary

ModifierConstructor
private (ResourceKey<? extends Registry<E>> registry)

Method summary

Modifier and TypeMethod
public static <E> RegistryFixedCodec<E>
a(aku<? extends ke<E>> arg0)
create(ResourceKey<? extends Registry<E>> arg0)
method_40400(class_5321<? extends class_2378<E>> arg0)
of(RegistryKey<? extends Registry<E>> registry)
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_40396(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)