Class RegistryBuilder

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

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

    • registries

      private final List<RegistryBuilder.RegistryInfo<?>> registries
      Mappings:
      Namespace Name Mixin selector
      named registries Lnet/minecraft/registry/RegistryBuilder;registries:Ljava/util/List;
      intermediary field_40941 Lnet/minecraft/class_7877;field_40941:Ljava/util/List;
      official a Lkc;a: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
      named toLookup Lnet/minecraft/registry/RegistryBuilder;toLookup(Lnet/minecraft/registry/RegistryWrapper$Impl;)Lnet/minecraft/registry/RegistryEntryLookup;
      intermediary method_46778 Lnet/minecraft/class_7877;method_46778(Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_7871;
      official a Lkc;a(Ljo$b;)Ljn;
    • createWrapper

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

      public <T> RegistryBuilder addRegistry(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, RegistryBuilder.BootstrapFunction<T> bootstrapFunction)
      Mappings:
      Namespace Name Mixin selector
      named addRegistry Lnet/minecraft/registry/RegistryBuilder;addRegistry(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Lnet/minecraft/registry/RegistryBuilder$BootstrapFunction;)Lnet/minecraft/registry/RegistryBuilder;
      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;
      official a Lkc;a(Lakp;Lcom/mojang/serialization/Lifecycle;Lkc$i;)Lkc;
    • addRegistry

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

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

      private static RegistryWrapper.WrapperLookup createWrapperLookup(RegistryBuilder.AnyOwner entryOwner, DynamicRegistryManager registryManager, Stream<RegistryWrapper.Impl<?>> wrappers)
      Mappings:
      Namespace Name Mixin selector
      named createWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createWrapperLookup(Lnet/minecraft/registry/RegistryBuilder$AnyOwner;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/stream/Stream;)Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
      intermediary method_55290 Lnet/minecraft/class_7877;method_55290(Lnet/minecraft/class_7877$class_7879;Lnet/minecraft/class_5455;Ljava/util/stream/Stream;)Lnet/minecraft/class_7225$class_7874;
      official a Lkc;a(Lkc$m;Lka;Ljava/util/stream/Stream;)Ljo$a;
    • createWrapperLookup

      public RegistryWrapper.WrapperLookup createWrapperLookup(DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      named createWrapperLookup Lnet/minecraft/registry/RegistryBuilder;createWrapperLookup(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
      intermediary method_46780 Lnet/minecraft/class_7877;method_46780(Lnet/minecraft/class_5455;)Lnet/minecraft/class_7225$class_7874;
      official a Lkc;a(Lka;)Ljo$a;
    • 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
      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;
      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;
      official a Lkc;a(Lka;Ljo$a;Lje$a;Ljava/util/Map;Ljo$a;)Ljo$a;
    • 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
      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;
      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;
      official a Lkc;a(Ljp;Lje$a;Lakp;Ljo$a;Ljo$a;Lorg/apache/commons/lang3/mutable/MutableObject;)Ljo$b;
    • createWrapperLookup

      public RegistryBuilder.FullPatchesRegistriesPair createWrapperLookup(DynamicRegistryManager baseRegistryManager, RegistryWrapper.WrapperLookup wrapperLookup, RegistryCloner.CloneableRegistries cloneableRegistries)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Lkc;a(Lka;Ljo$a;Lje$a;)Lkc$g;