Class SerializableRegistries

java.lang.Object
net.minecraft.registry.SerializableRegistries

public class SerializableRegistries extends Object
Mappings:
Namespace Name
official hv
intermediary net/minecraft/class_7782
named net/minecraft/registry/SerializableRegistries
  • Field Details

    • REGISTRIES

      private static final Map<RegistryKey<? extends Registry<?>>,SerializableRegistries.Info<?>> REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      official b Lhv;b:Ljava/util/Map;
      intermediary field_40588 Lnet/minecraft/class_7782;field_40588:Ljava/util/Map;
      named REGISTRIES Lnet/minecraft/registry/SerializableRegistries;REGISTRIES:Ljava/util/Map;
    • CODEC

      public static final com.mojang.serialization.Codec<DynamicRegistryManager> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a:Lcom/mojang/serialization/Codec;
      intermediary field_40587 Lnet/minecraft/class_7782;field_40587:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/registry/SerializableRegistries;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • SerializableRegistries

      public SerializableRegistries()
  • Method Details

    • add

      private static <E> void add(ImmutableMap.Builder<RegistryKey<? extends Registry<?>>,SerializableRegistries.Info<?>> builder, RegistryKey<? extends Registry<E>> key, com.mojang.serialization.Codec<E> networkCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a(Lcom/google/common/collect/ImmutableMap$Builder;Lacp;Lcom/mojang/serialization/Codec;)V
      intermediary method_45951 Lnet/minecraft/class_7782;method_45951(Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)V
      named add Lnet/minecraft/registry/SerializableRegistries;add(Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Codec;)V
    • stream

      private static Stream<DynamicRegistryManager.Entry<?>> stream(DynamicRegistryManager dynamicRegistryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a(Lhs;)Ljava/util/stream/Stream;
      intermediary method_45956 Lnet/minecraft/class_7782;method_45956(Lnet/minecraft/class_5455;)Ljava/util/stream/Stream;
      named stream Lnet/minecraft/registry/SerializableRegistries;stream(Lnet/minecraft/registry/DynamicRegistryManager;)Ljava/util/stream/Stream;
    • getNetworkCodec

      private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getNetworkCodec(RegistryKey<? extends Registry<E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a(Lacp;)Lcom/mojang/serialization/DataResult;
      intermediary method_45949 Lnet/minecraft/class_7782;method_45949(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult;
      named getNetworkCodec Lnet/minecraft/registry/SerializableRegistries;getNetworkCodec(Lnet/minecraft/registry/RegistryKey;)Lcom/mojang/serialization/DataResult;
    • createCodec

      private static <E> com.mojang.serialization.Codec<DynamicRegistryManager> createCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a()Lcom/mojang/serialization/Codec;
      intermediary method_45948 Lnet/minecraft/class_7782;method_45948()Lcom/mojang/serialization/Codec;
      named createCodec Lnet/minecraft/registry/SerializableRegistries;createCodec()Lcom/mojang/serialization/Codec;
    • createDynamicRegistryManagerCodec

      private static <K extends RegistryKey<? extends Registry<?>>, V extends Registry<?>> com.mojang.serialization.Codec<DynamicRegistryManager> createDynamicRegistryManagerCodec(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> networkCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
      intermediary method_45952 Lnet/minecraft/class_7782;method_45952(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
      named createDynamicRegistryManagerCodec Lnet/minecraft/registry/SerializableRegistries;createDynamicRegistryManagerCodec(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
    • streamDynamicEntries

      public static Stream<DynamicRegistryManager.Entry<?>> streamDynamicEntries(CombinedDynamicRegistries<ServerDynamicRegistryType> combinedRegistries)
      Mappings:
      Namespace Name Mixin selector
      official a Lhv;a(Lhl;)Ljava/util/stream/Stream;
      intermediary method_47449 Lnet/minecraft/class_7782;method_47449(Lnet/minecraft/class_7780;)Ljava/util/stream/Stream;
      named streamDynamicEntries Lnet/minecraft/registry/SerializableRegistries;streamDynamicEntries(Lnet/minecraft/registry/CombinedDynamicRegistries;)Ljava/util/stream/Stream;
    • streamRegistryManagerEntries

      public static Stream<DynamicRegistryManager.Entry<?>> streamRegistryManagerEntries(CombinedDynamicRegistries<ServerDynamicRegistryType> combinedRegistries)
      Mappings:
      Namespace Name Mixin selector
      official b Lhv;b(Lhl;)Ljava/util/stream/Stream;
      intermediary method_45953 Lnet/minecraft/class_7782;method_45953(Lnet/minecraft/class_7780;)Ljava/util/stream/Stream;
      named streamRegistryManagerEntries Lnet/minecraft/registry/SerializableRegistries;streamRegistryManagerEntries(Lnet/minecraft/registry/CombinedDynamicRegistries;)Ljava/util/stream/Stream;