Class RegistryOps<T>

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

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

    • registryInfoGetter

      private final RegistryOps.RegistryInfoGetter registryInfoGetter
      Mappings:
      Namespace Name Mixin selector
      official b Ladb;b:Ladb$b;
      intermediary field_40852 Lnet/minecraft/class_6903;field_40852:Lnet/minecraft/class_6903$class_7863;
      named registryInfoGetter Lnet/minecraft/registry/RegistryOps;registryInfoGetter:Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;
  • Constructor Details

    • RegistryOps

      private RegistryOps(com.mojang.serialization.DynamicOps<T> delegate, RegistryOps.RegistryInfoGetter registryInfoGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladb;<init>(Lcom/mojang/serialization/DynamicOps;Ladb$b;)V
      intermediary <init> Lnet/minecraft/class_6903;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6903$class_7863;)V
      named <init> Lnet/minecraft/registry/RegistryOps;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)V
  • Method Details

    • caching

      private static RegistryOps.RegistryInfoGetter caching(RegistryOps.RegistryInfoGetter registryInfoGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a(Ladb$b;)Ladb$b;
      intermediary method_46627 Lnet/minecraft/class_6903;method_46627(Lnet/minecraft/class_6903$class_7863;)Lnet/minecraft/class_6903$class_7863;
      named caching Lnet/minecraft/registry/RegistryOps;caching(Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;
    • of

      public static <T> RegistryOps<T> of(com.mojang.serialization.DynamicOps<T> delegate, RegistryWrapper.WrapperLookup wrapperLookup)
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a(Lcom/mojang/serialization/DynamicOps;Lhf$b;)Ladb;
      intermediary method_46632 Lnet/minecraft/class_6903;method_46632(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_6903;
      named of Lnet/minecraft/registry/RegistryOps;of(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/registry/RegistryOps;
    • of

      public static <T> RegistryOps<T> of(com.mojang.serialization.DynamicOps<T> delegate, RegistryOps.RegistryInfoGetter registryInfoGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a(Lcom/mojang/serialization/DynamicOps;Ladb$b;)Ladb;
      intermediary method_40414 Lnet/minecraft/class_6903;method_40414(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6903$class_7863;)Lnet/minecraft/class_6903;
      named of Lnet/minecraft/registry/RegistryOps;of(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;)Lnet/minecraft/registry/RegistryOps;
    • getOwner

      public <E> Optional<RegistryEntryOwner<E>> getOwner(RegistryKey<? extends Registry<? extends E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a(Ladc;)Ljava/util/Optional;
      intermediary method_46628 Lnet/minecraft/class_6903;method_46628(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getOwner Lnet/minecraft/registry/RegistryOps;getOwner(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
    • getEntryLookup

      public <E> Optional<RegistryEntryLookup<E>> getEntryLookup(RegistryKey<? extends Registry<? extends E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official b Ladb;b(Ladc;)Ljava/util/Optional;
      intermediary method_46634 Lnet/minecraft/class_6903;method_46634(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getEntryLookup Lnet/minecraft/registry/RegistryOps;getEntryLookup(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
    • getEntryLookupCodec

      public static <E, O> com.mojang.serialization.codecs.RecordCodecBuilder<O,RegistryEntryLookup<E>> getEntryLookupCodec(RegistryKey<? extends Registry<? extends E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official c Ladb;c(Ladc;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_46636 Lnet/minecraft/class_6903;method_46636(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named getEntryLookupCodec Lnet/minecraft/registry/RegistryOps;getEntryLookupCodec(Lnet/minecraft/registry/RegistryKey;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
    • getEntryCodec

      public static <E, O> com.mojang.serialization.codecs.RecordCodecBuilder<O,RegistryEntry.Reference<E>> getEntryCodec(RegistryKey<E> key)
      Mappings:
      Namespace Name Mixin selector
      official d Ladb;d(Ladc;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      intermediary method_46637 Lnet/minecraft/class_6903;method_46637(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
      named getEntryCodec Lnet/minecraft/registry/RegistryOps;getEntryCodec(Lnet/minecraft/registry/RegistryKey;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;