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 kg
  • 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 Lkg;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 Lkg;a(Ljs$b;)Ljr;
    • 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 Lkg;a(Laly;Lcom/mojang/serialization/Lifecycle;Ljt;Ljava/util/Map;)Ljs$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 Lkg;a(Laly;Lcom/mojang/serialization/Lifecycle;Lkg$i;)Lkg;
    • 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 Lkg;a(Laly;Lkg$i;)Lkg;
    • 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 Lkg;b(Lke;)Lkg$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 Lkg;a(Lkg$m;Lke;Ljava/util/stream/Stream;)Ljs$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 Lkg;a(Lke;)Ljs$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 Lkg;a(Lke;Ljs$a;Lji$a;Ljava/util/Map;Ljs$a;)Ljs$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 Lkg;a(Ljt;Lji$a;Laly;Ljs$a;Ljs$a;Lorg/apache/commons/lang3/mutable/MutableObject;)Ljs$b;
    • createWrapperLookup

      public RegistryBuilder.FullPatchesRegistriesPair createWrapperLookup(DynamicRegistryManager baseRegistryManager, RegistryWrapper.WrapperLookup registries, 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 Lkg;a(Lke;Ljs$a;Lji$a;)Lkg$g;