Class SerializableRegistries

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

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

    • SYNCED_REGISTRIES

      public static final Set<RegistryKey<? extends Registry<?>>> SYNCED_REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      named SYNCED_REGISTRIES Lnet/minecraft/registry/SerializableRegistries;SYNCED_REGISTRIES:Ljava/util/Set;
      intermediary field_48771 Lnet/minecraft/class_7782;field_48771:Ljava/util/Set;
      official a Lkd;a:Ljava/util/Set;
  • Constructor Details

    • SerializableRegistries

      public SerializableRegistries()
  • Method Details

    • forEachSyncedRegistry

      public static void forEachSyncedRegistry(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>,List<SerializableRegistries.SerializedRegistryEntry>> callback)
      Mappings:
      Namespace Name Mixin selector
      named forEachSyncedRegistry Lnet/minecraft/registry/SerializableRegistries;forEachSyncedRegistry(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
      intermediary method_56598 Lnet/minecraft/class_7782;method_56598(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5455;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
      official a Lkd;a(Lcom/mojang/serialization/DynamicOps;Lka;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
    • serialize

      private static <T> void serialize(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, RegistryLoader.Entry<T> entry, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>,List<SerializableRegistries.SerializedRegistryEntry>> callback)
      Mappings:
      Namespace Name Mixin selector
      named serialize Lnet/minecraft/registry/SerializableRegistries;serialize(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/RegistryLoader$Entry;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
      intermediary method_56597 Lnet/minecraft/class_7782;method_56597(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_7655$class_7657;Lnet/minecraft/class_5455;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
      official a Lkd;a(Lcom/mojang/serialization/DynamicOps;Lakl$c;Lka;Ljava/util/Set;Ljava/util/function/BiConsumer;)V
    • stream

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

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

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