Class RegistryBuilder

java.lang.Object
net.minecraft.registry.RegistryBuilder

public class RegistryBuilder extends Object
Mappings:
Namespace Name
official iw
intermediary net/minecraft/class_7877
named net/minecraft/registry/RegistryBuilder
  • Field Details

    • registries

      private final List<RegistryBuilder.RegistryInfo<?>> registries
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a:Ljava/util/List;
      intermediary field_40941 Lnet/minecraft/class_7877;field_40941:Ljava/util/List;
      named registries Lnet/minecraft/registry/RegistryBuilder;registries:Ljava/util/List;
  • Constructor Details

    • RegistryBuilder

      public RegistryBuilder()
  • Method Details

    • toLookup

      static <T> RegistryEntryLookup<T> toLookup(RegistryWrapper.Impl<T> wrapper)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Lij$c;)Lii;
      intermediary method_46778 Lnet/minecraft/class_7877;method_46778(Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_7871;
      named toLookup Lnet/minecraft/registry/RegistryBuilder;toLookup(Lnet/minecraft/registry/RegistryWrapper$Impl;)Lnet/minecraft/registry/RegistryEntryLookup;
    • createWrapper

      static <T> RegistryWrapper.Impl<T> createWrapper(RegistryKey<? extends Registry<? extends T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, Map<RegistryKey<T>,RegistryEntry.Reference<T>> entries)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Lahf;Lcom/mojang/serialization/Lifecycle;Ljava/util/Map;)Lij$c;
      intermediary method_55283 Lnet/minecraft/class_7877;method_55283(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Ljava/util/Map;)Lnet/minecraft/class_7225$class_7226;
      named createWrapper Lnet/minecraft/registry/RegistryBuilder;createWrapper(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Ljava/util/Map;)Lnet/minecraft/registry/RegistryWrapper$Impl;
    • addRegistry

      public <T> RegistryBuilder addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, RegistryBuilder.BootstrapFunction<T> bootstrapFunction)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Lahf;Lcom/mojang/serialization/Lifecycle;Liw$g;)Liw;
      intermediary method_46776 Lnet/minecraft/class_7877;method_46776(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Lnet/minecraft/class_7877$class_7882;)Lnet/minecraft/class_7877;
      named addRegistry Lnet/minecraft/registry/RegistryBuilder;addRegistry(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Lnet/minecraft/registry/RegistryBuilder$BootstrapFunction;)Lnet/minecraft/registry/RegistryBuilder;
    • addRegistry

      public <T> RegistryBuilder addRegistry(RegistryKey<? extends Registry<T>> registryRef, RegistryBuilder.BootstrapFunction<T> bootstrapFunction)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Lahf;Liw$g;)Liw;
      intermediary method_46777 Lnet/minecraft/class_7877;method_46777(Lnet/minecraft/class_5321;Lnet/minecraft/class_7877$class_7882;)Lnet/minecraft/class_7877;
      named addRegistry Lnet/minecraft/registry/RegistryBuilder;addRegistry(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryBuilder$BootstrapFunction;)Lnet/minecraft/registry/RegistryBuilder;
    • createBootstrappedRegistries

      private RegistryBuilder.Registries createBootstrappedRegistries(DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      official b Liw;b(Liu;)Liw$a;
      intermediary method_46784 Lnet/minecraft/class_7877;method_46784(Lnet/minecraft/class_5455;)Lnet/minecraft/class_7877$class_7878;
      named createBootstrappedRegistries Lnet/minecraft/registry/RegistryBuilder;createBootstrappedRegistries(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/registry/RegistryBuilder$Registries;
    • createWrapperLookup

      private static RegistryWrapper.WrapperLookup createWrapperLookup(DynamicRegistryManager registryManager, Stream<RegistryWrapper.Impl<?>> additionalRegistries)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Liu;Ljava/util/stream/Stream;)Lij$b;
      intermediary method_55290 Lnet/minecraft/class_7877;method_55290(Lnet/minecraft/class_5455;Ljava/util/stream/Stream;)Lnet/minecraft/class_7225$class_7874;
      named createWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createWrapperLookup(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/stream/Stream;)Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
    • createWrapperLookup

      public RegistryWrapper.WrapperLookup createWrapperLookup(DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Liu;)Lij$b;
      intermediary method_46780 Lnet/minecraft/class_7877;method_46780(Lnet/minecraft/class_5455;)Lnet/minecraft/class_7225$class_7874;
      named createWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createWrapperLookup(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
    • createFullWrapperLookup

      private RegistryWrapper.WrapperLookup createFullWrapperLookup(DynamicRegistryManager registryManager, RegistryWrapper.WrapperLookup base, RegistryCloner.CloneableRegistries cloneableRegistries, Map<RegistryKey<? extends Registry<?>>,RegistryBuilder.InitializedRegistry<?>> initializedRegistries, RegistryWrapper.WrapperLookup patches)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Liu;Lij$b;Lhy$a;Ljava/util/Map;Lij$b;)Lij$b;
      intermediary method_55289 Lnet/minecraft/class_7877;method_55289(Lnet/minecraft/class_5455;Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_8990$class_8991;Ljava/util/Map;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_7225$class_7874;
      named createFullWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createFullWrapperLookup(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/registry/RegistryCloner$CloneableRegistries;Ljava/util/Map;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
    • applyPatches

      private <T> RegistryWrapper.Impl<T> applyPatches(RegistryEntryOwner<T> owner, RegistryCloner.CloneableRegistries cloneableRegistries, RegistryKey<? extends Registry<? extends T>> registryRef, RegistryWrapper.WrapperLookup patches, RegistryWrapper.WrapperLookup base, MutableObject<RegistryWrapper.WrapperLookup> lazyWrapper)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Lik;Lhy$a;Lahf;Lij$b;Lij$b;Lorg/apache/commons/lang3/mutable/MutableObject;)Lij$c;
      intermediary method_55286 Lnet/minecraft/class_7877;method_55286(Lnet/minecraft/class_7876;Lnet/minecraft/class_8990$class_8991;Lnet/minecraft/class_5321;Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_7225$class_7874;Lorg/apache/commons/lang3/mutable/MutableObject;)Lnet/minecraft/class_7225$class_7226;
      named applyPatches Lnet/minecraft/registry/RegistryBuilder;applyPatches(Lnet/minecraft/registry/entry/RegistryEntryOwner;Lnet/minecraft/registry/RegistryCloner$CloneableRegistries;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lorg/apache/commons/lang3/mutable/MutableObject;)Lnet/minecraft/registry/RegistryWrapper$Impl;
    • createWrapperLookup

      public RegistryBuilder.FullPatchesRegistriesPair createWrapperLookup(DynamicRegistryManager baseRegistryManager, RegistryWrapper.WrapperLookup wrapperLookup, RegistryCloner.CloneableRegistries cloneableRegistries)
      Mappings:
      Namespace Name Mixin selector
      official a Liw;a(Liu;Lij$b;Lhy$a;)Liw$e;
      intermediary method_46781 Lnet/minecraft/class_7877;method_46781(Lnet/minecraft/class_5455;Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_8990$class_8991;)Lnet/minecraft/class_7877$class_8993;
      named createWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createWrapperLookup(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/registry/RegistryCloner$CloneableRegistries;)Lnet/minecraft/registry/RegistryBuilder$FullPatchesRegistriesPair;