Package net.minecraft.registry
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>
- Mappings:
Namespace Name intermediary net/minecraft/class_6903official aconamed net/minecraft/registry/RegistryOps
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interface -
Field Summary
FieldsFields inherited from class net.minecraft.util.dynamic.ForwardingDynamicOps
delegate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistryOps(com.mojang.serialization.DynamicOps<T> delegate, RegistryOps.RegistryInfoGetter registryInfoGetter) -
Method Summary
Modifier and TypeMethodDescriptionprivate static RegistryOps.RegistryInfoGettercaching(RegistryOps.RegistryInfoGetter registryInfoGetter) static <E,O> com.mojang.serialization.codecs.RecordCodecBuilder<O, RegistryEntry.Reference<E>> getEntryCodec(RegistryKey<E> key) <E> Optional<RegistryEntryLookup<E>>getEntryLookup(RegistryKey<? extends Registry<? extends E>> registryRef) static <E,O> com.mojang.serialization.codecs.RecordCodecBuilder<O, RegistryEntryLookup<E>> getEntryLookupCodec(RegistryKey<? extends Registry<? extends E>> registryRef) <E> Optional<RegistryEntryOwner<E>>getOwner(RegistryKey<? extends Registry<? extends E>> registryRef) static <T> RegistryOps<T>of(com.mojang.serialization.DynamicOps<T> delegate, RegistryOps.RegistryInfoGetter registryInfoGetter) static <T> RegistryOps<T>of(com.mojang.serialization.DynamicOps<T> delegate, RegistryWrapper.WrapperLookup wrapperLookup) Methods inherited from class net.minecraft.util.dynamic.ForwardingDynamicOps
compressMaps, convertTo, createBoolean, createByte, createByteList, createDouble, createFloat, createInt, createIntList, createList, createLong, createLongList, createMap, createNumeric, createShort, createString, empty, getBooleanValue, getByteBuffer, getIntStream, getList, getLongStream, getMap, getMapEntries, getMapValues, getNumberValue, getStream, getStringValue, listBuilder, mapBuilder, mergeToList, mergeToList, mergeToMap, mergeToMap, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.serialization.DynamicOps
convertList, convertMap, createMap, emptyList, emptyMap, get, getGeneric, getNumberValue, mergeToMap, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
-
Field Details
-
registryInfoGetter
- Mappings:
Namespace Name Mixin selector intermediary field_40852Lnet/minecraft/class_6903;field_40852:Lnet/minecraft/class_6903$class_7863;official bLaco;b:Laco$b;named registryInfoGetterLnet/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 intermediary <init>Lnet/minecraft/class_6903;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6903$class_7863;)Vofficial <init>Laco;<init>(Lcom/mojang/serialization/DynamicOps;Laco$b;)Vnamed <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 intermediary method_46627Lnet/minecraft/class_6903;method_46627(Lnet/minecraft/class_6903$class_7863;)Lnet/minecraft/class_6903$class_7863;official aLaco;a(Laco$b;)Laco$b;named cachingLnet/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 intermediary method_46632Lnet/minecraft/class_6903;method_46632(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_6903;official aLaco;a(Lcom/mojang/serialization/DynamicOps;Lhg$b;)Laco;named ofLnet/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 intermediary method_40414Lnet/minecraft/class_6903;method_40414(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6903$class_7863;)Lnet/minecraft/class_6903;official aLaco;a(Lcom/mojang/serialization/DynamicOps;Laco$b;)Laco;named ofLnet/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 intermediary method_46628Lnet/minecraft/class_6903;method_46628(Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLaco;a(Lacp;)Ljava/util/Optional;named getOwnerLnet/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 intermediary method_46634Lnet/minecraft/class_6903;method_46634(Lnet/minecraft/class_5321;)Ljava/util/Optional;official bLaco;b(Lacp;)Ljava/util/Optional;named getEntryLookupLnet/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 intermediary method_46636Lnet/minecraft/class_6903;method_46636(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;official cLaco;c(Lacp;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;named getEntryLookupCodecLnet/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 intermediary method_46637Lnet/minecraft/class_6903;method_46637(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;official dLaco;d(Lacp;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;named getEntryCodecLnet/minecraft/registry/RegistryOps;getEntryCodec(Lnet/minecraft/registry/RegistryKey;)Lcom/mojang/serialization/codecs/RecordCodecBuilder;
-