Class RegistryOps<T>

java.lang.Object
net.minecraft.util.dynamic.ForwardingDynamicOps<T>
net.minecraft.util.dynamic.RegistryOps<T>
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>

public class RegistryOps<T> extends ForwardingDynamicOps<T>
Mappings:
Namespace Name
official aay
intermediary net/minecraft/class_6903
named net/minecraft/util/dynamic/RegistryOps
  • Field Details

    • loaderAccess

      private final Optional<RegistryLoader.LoaderAccess> loaderAccess
      Mappings:
      Namespace Name Mixin selector
      official b Laay;b:Ljava/util/Optional;
      intermediary field_36488 Lnet/minecraft/class_6903;field_36488:Ljava/util/Optional;
      named loaderAccess Lnet/minecraft/util/dynamic/RegistryOps;loaderAccess:Ljava/util/Optional;
    • registryManager

      private final DynamicRegistryManager registryManager
      Mappings:
      Namespace Name Mixin selector
      official c Laay;c:Lhn;
      intermediary field_36489 Lnet/minecraft/class_6903;field_36489:Lnet/minecraft/class_5455;
      named registryManager Lnet/minecraft/util/dynamic/RegistryOps;registryManager:Lnet/minecraft/util/registry/DynamicRegistryManager;
    • entryOps

      private final com.mojang.serialization.DynamicOps<JsonElement> entryOps
      Mappings:
      Namespace Name Mixin selector
      official d Laay;d:Lcom/mojang/serialization/DynamicOps;
      intermediary field_36490 Lnet/minecraft/class_6903;field_36490:Lcom/mojang/serialization/DynamicOps;
      named entryOps Lnet/minecraft/util/dynamic/RegistryOps;entryOps:Lcom/mojang/serialization/DynamicOps;
  • Constructor Details

    • RegistryOps

      private RegistryOps(com.mojang.serialization.DynamicOps<T> delegate, DynamicRegistryManager dynamicRegistryManager, Optional<RegistryLoader.LoaderAccess> loaderAccess)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laay;<init>(Lcom/mojang/serialization/DynamicOps;Lhn;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_6903;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5455;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/util/dynamic/RegistryOps;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/util/Optional;)V
  • Method Details

    • of

      public static <T> RegistryOps<T> of(com.mojang.serialization.DynamicOps<T> delegate, DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Lcom/mojang/serialization/DynamicOps;Lhn;)Laay;
      intermediary method_40414 Lnet/minecraft/class_6903;method_40414(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5455;)Lnet/minecraft/class_6903;
      named of Lnet/minecraft/util/dynamic/RegistryOps;of(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/util/dynamic/RegistryOps;
    • ofLoaded

      public static <T> RegistryOps<T> ofLoaded(com.mojang.serialization.DynamicOps<T> ops, DynamicRegistryManager.Mutable registryManager, ResourceManager resourceManager)
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Lcom/mojang/serialization/DynamicOps;Lhn$e;Laim;)Laay;
      intermediary method_40412 Lnet/minecraft/class_6903;method_40412(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5455$class_6893;Lnet/minecraft/class_3300;)Lnet/minecraft/class_6903;
      named ofLoaded Lnet/minecraft/util/dynamic/RegistryOps;ofLoaded(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/DynamicRegistryManager$Mutable;Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/util/dynamic/RegistryOps;
    • ofLoaded

      public static <T> RegistryOps<T> ofLoaded(com.mojang.serialization.DynamicOps<T> ops, DynamicRegistryManager.Mutable registryManager, EntryLoader entryLoader)
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Lcom/mojang/serialization/DynamicOps;Lhn$e;Laaz;)Laay;
      intermediary method_40413 Lnet/minecraft/class_6903;method_40413(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5455$class_6893;Lnet/minecraft/class_5506;)Lnet/minecraft/class_6903;
      named ofLoaded Lnet/minecraft/util/dynamic/RegistryOps;ofLoaded(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/DynamicRegistryManager$Mutable;Lnet/minecraft/util/dynamic/EntryLoader;)Lnet/minecraft/util/dynamic/RegistryOps;
    • getRegistry

      public <E> Optional<? extends Registry<E>> getRegistry(RegistryKey<? extends Registry<? extends E>> key)
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Laba;)Ljava/util/Optional;
      intermediary method_40416 Lnet/minecraft/class_6903;method_40416(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getRegistry Lnet/minecraft/util/dynamic/RegistryOps;getRegistry(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
    • getLoaderAccess

      public Optional<RegistryLoader.LoaderAccess> getLoaderAccess()
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a()Ljava/util/Optional;
      intermediary method_40411 Lnet/minecraft/class_6903;method_40411()Ljava/util/Optional;
      named getLoaderAccess Lnet/minecraft/util/dynamic/RegistryOps;getLoaderAccess()Ljava/util/Optional;
    • getEntryOps

      public com.mojang.serialization.DynamicOps<JsonElement> getEntryOps()
      Mappings:
      Namespace Name Mixin selector
      official b Laay;b()Lcom/mojang/serialization/DynamicOps;
      intermediary method_40418 Lnet/minecraft/class_6903;method_40418()Lcom/mojang/serialization/DynamicOps;
      named getEntryOps Lnet/minecraft/util/dynamic/RegistryOps;getEntryOps()Lcom/mojang/serialization/DynamicOps;
    • createRegistryCodec

      public static <E> com.mojang.serialization.MapCodec<Registry<E>> createRegistryCodec(RegistryKey<? extends Registry<? extends E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official b Laay;b(Laba;)Lcom/mojang/serialization/MapCodec;
      intermediary method_40419 Lnet/minecraft/class_6903;method_40419(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/MapCodec;
      named createRegistryCodec Lnet/minecraft/util/dynamic/RegistryOps;createRegistryCodec(Lnet/minecraft/util/registry/RegistryKey;)Lcom/mojang/serialization/MapCodec;