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 kh
  • Field Details

    • SYNCED_REGISTRIES

      private 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 Lkh;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 Lkh;a(Lcom/mojang/serialization/DynamicOps;Lke;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 Lkh;a(Lcom/mojang/serialization/DynamicOps;Lalu$d;Lke;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 Lkh;a(Lke;)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 Lkh;a(Ljx;)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 Lkh;b(Ljx;)Ljava/util/stream/Stream;
    • isSynced

      public static boolean isSynced(RegistryKey<? extends Registry<?>> key)
      Mappings:
      Namespace Name Mixin selector
      named isSynced Lnet/minecraft/registry/SerializableRegistries;isSynced(Lnet/minecraft/registry/RegistryKey;)Z
      intermediary method_62704 Lnet/minecraft/class_7782;method_62704(Lnet/minecraft/class_5321;)Z
      official a Lkh;a(Laly;)Z