Class DynamicRegistriesProvider

java.lang.Object
net.minecraft.data.server.DynamicRegistriesProvider
All Implemented Interfaces:
DataProvider

public class DynamicRegistriesProvider extends Object implements DataProvider
Mappings:
Namespace Name
named net/minecraft/data/server/DynamicRegistriesProvider
intermediary net/minecraft/class_5475
official pp
  • Field Details

    • output

      private final DataOutput output
      Mappings:
      Namespace Name Mixin selector
      named output Lnet/minecraft/data/server/DynamicRegistriesProvider;output:Lnet/minecraft/data/DataOutput;
      intermediary field_40665 Lnet/minecraft/class_5475;field_40665:Lnet/minecraft/class_7784;
      official d Lpp;d:Lmj;
    • registriesFuture

      private final CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture
      Mappings:
      Namespace Name Mixin selector
      named registriesFuture Lnet/minecraft/data/server/DynamicRegistriesProvider;registriesFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_40952 Lnet/minecraft/class_5475;field_40952:Ljava/util/concurrent/CompletableFuture;
      official e Lpp;e:Ljava/util/concurrent/CompletableFuture;
  • Constructor Details

    • DynamicRegistriesProvider

      public DynamicRegistriesProvider(DataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/server/DynamicRegistriesProvider;<init>(Lnet/minecraft/data/DataOutput;Ljava/util/concurrent/CompletableFuture;)V
      intermediary <init> Lnet/minecraft/class_5475;<init>(Lnet/minecraft/class_7784;Ljava/util/concurrent/CompletableFuture;)V
      official <init> Lpp;<init>(Lmj;Ljava/util/concurrent/CompletableFuture;)V
  • Method Details

    • run

      public CompletableFuture<?> run(DataWriter writer)
      Specified by:
      run in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataWriter;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_10319 Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_7403;)Ljava/util/concurrent/CompletableFuture;
      official a Lmh;a(Lmf;)Ljava/util/concurrent/CompletableFuture;
    • writeRegistryEntries

      private <T> Optional<CompletableFuture<?>> writeRegistryEntries(DataWriter writer, RegistryWrapper.WrapperLookup registries, com.mojang.serialization.DynamicOps<JsonElement> ops, RegistryLoader.Entry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      named writeRegistryEntries Lnet/minecraft/data/server/DynamicRegistriesProvider;writeRegistryEntries(Lnet/minecraft/data/DataWriter;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/RegistryLoader$Entry;)Ljava/util/Optional;
      intermediary method_39678 Lnet/minecraft/class_5475;method_39678(Lnet/minecraft/class_7403;Lnet/minecraft/class_7225$class_7874;Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_7655$class_7657;)Ljava/util/Optional;
      official a Lpp;a(Lmf;Ljs$a;Lcom/mojang/serialization/DynamicOps;Lalu$d;)Ljava/util/Optional;
    • writeToPath

      private static <E> CompletableFuture<?> writeToPath(Path path, DataWriter cache, com.mojang.serialization.DynamicOps<JsonElement> json, com.mojang.serialization.Encoder<E> encoder, E value)
      Mappings:
      Namespace Name Mixin selector
      named writeToPath Lnet/minecraft/data/server/DynamicRegistriesProvider;writeToPath(Ljava/nio/file/Path;Lnet/minecraft/data/DataWriter;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Encoder;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_39680 Lnet/minecraft/class_5475;method_39680(Ljava/nio/file/Path;Lnet/minecraft/class_7403;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Encoder;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
      official a Lpp;a(Ljava/nio/file/Path;Lmf;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Encoder;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
    • getName

      public final String getName()
      Specified by:
      getName in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
      intermediary method_10321 Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
      official a Lmh;a()Ljava/lang/String;