Class RegistryCodecs

java.lang.Object
net.minecraft.util.registry.RegistryCodecs

public class RegistryCodecs extends Object
Mappings:
Namespace Name
official hd
intermediary net/minecraft/class_6895
named net/minecraft/util/registry/RegistryCodecs
  • Constructor Details

    • RegistryCodecs

      public RegistryCodecs()
  • Method Details

    • managerEntry

      private static <T> com.mojang.serialization.MapCodec<RegistryCodecs.RegistryManagerEntry<T>> managerEntry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.MapCodec<T> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      intermediary method_40347 Lnet/minecraft/class_6895;method_40347(Lnet/minecraft/class_5321;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      named managerEntry Lnet/minecraft/util/registry/RegistryCodecs;managerEntry(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
    • createRegistryCodec

      public static <T> com.mojang.serialization.Codec<Registry<T>> createRegistryCodec(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_40344 Lnet/minecraft/class_6895;method_40344(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named createRegistryCodec Lnet/minecraft/util/registry/RegistryCodecs;createRegistryCodec(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • dynamicRegistry

      public static <E> com.mojang.serialization.Codec<Registry<E>> dynamicRegistry(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<E> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official b Lhd;b(Lys;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_40352 Lnet/minecraft/class_6895;method_40352(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named dynamicRegistry Lnet/minecraft/util/registry/RegistryCodecs;dynamicRegistry(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • createRegistryDecoder

      private static <E> com.mojang.serialization.Decoder<Registry<E>> createRegistryDecoder(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> codec, com.mojang.serialization.Decoder<Map<RegistryKey<E>,E>> entryMapDecoder, com.mojang.serialization.Lifecycle lifecycle)
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Decoder;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/serialization/Decoder;
      intermediary method_40342 Lnet/minecraft/class_6895;method_40342(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Decoder;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/serialization/Decoder;
      named createRegistryDecoder Lnet/minecraft/util/registry/RegistryCodecs;createRegistryDecoder(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Decoder;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/serialization/Decoder;
    • registryMap

      private static <T> com.mojang.serialization.Codec<Map<RegistryKey<T>,T>> registryMap(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Codec<T> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official b Lhd;b(Lys;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_40351 Lnet/minecraft/class_6895;method_40351(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named registryMap Lnet/minecraft/util/registry/RegistryCodecs;registryMap(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • entryList

      public static <E> com.mojang.serialization.Codec<RegistryEntryList<E>> entryList(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_40341 Lnet/minecraft/class_6895;method_40341(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named entryList Lnet/minecraft/util/registry/RegistryCodecs;entryList(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • entryList

      public static <E> com.mojang.serialization.Codec<RegistryEntryList<E>> entryList(RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> elementCodec, boolean alwaysSerializeAsList)
      Parameters:
      alwaysSerializeAsList - whether to always serialize the list as a list instead of serializing as one entry if the length is 0
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Lcom/mojang/serialization/Codec;Z)Lcom/mojang/serialization/Codec;
      intermediary method_40343 Lnet/minecraft/class_6895;method_40343(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Z)Lcom/mojang/serialization/Codec;
      named entryList Lnet/minecraft/util/registry/RegistryCodecs;entryList(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Codec;Z)Lcom/mojang/serialization/Codec;
    • entryList

      public static <E> com.mojang.serialization.Codec<RegistryEntryList<E>> entryList(RegistryKey<? extends Registry<E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;)Lcom/mojang/serialization/Codec;
      intermediary method_40340 Lnet/minecraft/class_6895;method_40340(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/Codec;
      named entryList Lnet/minecraft/util/registry/RegistryCodecs;entryList(Lnet/minecraft/util/registry/RegistryKey;)Lcom/mojang/serialization/Codec;
    • entryList

      public static <E> com.mojang.serialization.Codec<RegistryEntryList<E>> entryList(RegistryKey<? extends Registry<E>> registryRef, boolean alwaysSerializeAsList)
      Parameters:
      alwaysSerializeAsList - whether to always serialize the list as a list instead of serializing as one entry if the length is 0
      Mappings:
      Namespace Name Mixin selector
      official a Lhd;a(Lys;Z)Lcom/mojang/serialization/Codec;
      intermediary method_40349 Lnet/minecraft/class_6895;method_40349(Lnet/minecraft/class_5321;Z)Lcom/mojang/serialization/Codec;
      named entryList Lnet/minecraft/util/registry/RegistryCodecs;entryList(Lnet/minecraft/util/registry/RegistryKey;Z)Lcom/mojang/serialization/Codec;