Class RegistryCodecs

java.lang.Object
net.minecraft.core.RegistryCodecs

public class RegistryCodecs extends Object
  • Constructor Details

    • RegistryCodecs

      public RegistryCodecs()
  • Method Details

    • withNameAndId

      private static <T> com.mojang.serialization.MapCodec<RegistryCodecs.RegistryEntry<T>> withNameAndId(ResourceKey<? extends Registry<T>> p_206304_, com.mojang.serialization.MapCodec<T> p_206305_)
    • networkCodec

      public static <T> com.mojang.serialization.Codec<Registry<T>> networkCodec(ResourceKey<? extends Registry<T>> p_206292_, com.mojang.serialization.Lifecycle p_206293_, com.mojang.serialization.Codec<T> p_206294_)
    • fullCodec

      public static <E> com.mojang.serialization.Codec<Registry<E>> fullCodec(ResourceKey<? extends Registry<E>> p_248884_, com.mojang.serialization.Lifecycle p_251810_, com.mojang.serialization.Codec<E> p_250169_)
    • homogeneousList

      public static <E> com.mojang.serialization.Codec<HolderSet<E>> homogeneousList(ResourceKey<? extends Registry<E>> p_206280_, com.mojang.serialization.Codec<E> p_206281_)
    • homogeneousList

      public static <E> com.mojang.serialization.Codec<HolderSet<E>> homogeneousList(ResourceKey<? extends Registry<E>> p_206288_, com.mojang.serialization.Codec<E> p_206289_, boolean p_206290_)
    • homogeneousList

      public static <E> com.mojang.serialization.Codec<HolderSet<E>> homogeneousList(ResourceKey<? extends Registry<E>> p_206278_)
    • homogeneousList

      public static <E> com.mojang.serialization.Codec<HolderSet<E>> homogeneousList(ResourceKey<? extends Registry<E>> p_206311_, boolean p_206312_)