Package net.minecraft.util.registry
Class RegistryEntry.Reference<T>
java.lang.Object
net.minecraft.util.registry.RegistryEntry.Reference<T>
- All Implemented Interfaces:
RegistryEntry<T>
- Enclosing interface:
RegistryEntry<T>
- Mappings:
Namespace Name official hc$cintermediary net/minecraft/class_6880$class_6883named net/minecraft/util/registry/RegistryEntry$Reference
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.util.registry.RegistryEntry
RegistryEntry.Direct<T>, RegistryEntry.Reference<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry.Reference.Typeprivate @Nullable RegistryKey<T>private T -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReference(RegistryEntry.Reference.Type referenceType, Registry<T> registry, @Nullable RegistryKey<T> registryKey, T value) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()com.mojang.datafixers.util.Either<RegistryKey<T>,T> getType()booleanstatic <T> RegistryEntry.Reference<T>Deprecated.booleanbooleanmatches(Predicate<RegistryKey<T>> predicate) booleanmatchesId(Identifier id) booleanmatchesKey(RegistryKey<T> key) booleanmatchesRegistry(Registry<T> registry) (package private) voidsetKeyAndValue(RegistryKey<T> key, T value) (package private) voidsetTags(Collection<TagKey<T>> tags) static <T> RegistryEntry.Reference<T>standAlone(Registry<T> registry, RegistryKey<T> registryKey) toString()value()
-
Field Details
-
registry
- Mappings:
Namespace Name Mixin selector official aLhc$c;a:Lhm;intermediary field_36449Lnet/minecraft/class_6880$class_6883;field_36449:Lnet/minecraft/class_2378;named registryLnet/minecraft/util/registry/RegistryEntry$Reference;registry:Lnet/minecraft/util/registry/Registry;
-
tags
- Mappings:
Namespace Name Mixin selector official bLhc$c;b:Ljava/util/Set;intermediary field_36450Lnet/minecraft/class_6880$class_6883;field_36450:Ljava/util/Set;named tagsLnet/minecraft/util/registry/RegistryEntry$Reference;tags:Ljava/util/Set;
-
referenceType
- Mappings:
Namespace Name Mixin selector official cLhc$c;c:Lhc$c$a;intermediary field_36451Lnet/minecraft/class_6880$class_6883;field_36451:Lnet/minecraft/class_6880$class_6883$class_6884;named referenceTypeLnet/minecraft/util/registry/RegistryEntry$Reference;referenceType:Lnet/minecraft/util/registry/RegistryEntry$Reference$Type;
-
registryKey
- Mappings:
Namespace Name Mixin selector official dLhc$c;d:Laai;intermediary field_36452Lnet/minecraft/class_6880$class_6883;field_36452:Lnet/minecraft/class_5321;named registryKeyLnet/minecraft/util/registry/RegistryEntry$Reference;registryKey:Lnet/minecraft/util/registry/RegistryKey;
-
value
- Mappings:
Namespace Name Mixin selector official eLhc$c;e:Ljava/lang/Object;intermediary field_36453Lnet/minecraft/class_6880$class_6883;field_36453:Ljava/lang/Object;named valueLnet/minecraft/util/registry/RegistryEntry$Reference;value:Ljava/lang/Object;
-
-
Constructor Details
-
Reference
private Reference(RegistryEntry.Reference.Type referenceType, Registry<T> registry, @Nullable @Nullable RegistryKey<T> registryKey, @Nullable T value) - Mappings:
Namespace Name Mixin selector official <init>Lhc$c;<init>(Lhc$c$a;Lhm;Laai;Ljava/lang/Object;)Vintermediary <init>Lnet/minecraft/class_6880$class_6883;<init>(Lnet/minecraft/class_6880$class_6883$class_6884;Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/lang/Object;)Vnamed <init>Lnet/minecraft/util/registry/RegistryEntry$Reference;<init>(Lnet/minecraft/util/registry/RegistryEntry$Reference$Type;Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)V
-
-
Method Details
-
standAlone
public static <T> RegistryEntry.Reference<T> standAlone(Registry<T> registry, RegistryKey<T> registryKey) - Mappings:
Namespace Name Mixin selector official aLhc$c;a(Lhm;Laai;)Lhc$c;intermediary method_40234Lnet/minecraft/class_6880$class_6883;method_40234(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;named standAloneLnet/minecraft/util/registry/RegistryEntry$Reference;standAlone(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryEntry$Reference;
-
intrusive
@Deprecated public static <T> RegistryEntry.Reference<T> intrusive(Registry<T> registry, @Nullable T value) Deprecated.- Mappings:
Namespace Name Mixin selector official aLhc$c;a(Lhm;Ljava/lang/Object;)Lhc$c;intermediary method_40233Lnet/minecraft/class_6880$class_6883;method_40233(Lnet/minecraft/class_2378;Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;named intrusiveLnet/minecraft/util/registry/RegistryEntry$Reference;intrusive(Lnet/minecraft/util/registry/Registry;Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry$Reference;
-
registryKey
- Mappings:
Namespace Name Mixin selector official gLhc$c;g()Laai;intermediary method_40237Lnet/minecraft/class_6880$class_6883;method_40237()Lnet/minecraft/class_5321;named registryKeyLnet/minecraft/util/registry/RegistryEntry$Reference;registryKey()Lnet/minecraft/util/registry/RegistryKey;
-
value
- Specified by:
valuein interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a()Ljava/lang/Object;intermediary comp_349Lnet/minecraft/class_6880;comp_349()Ljava/lang/Object;named valueLnet/minecraft/util/registry/RegistryEntry;value()Ljava/lang/Object;
-
matchesId
- Specified by:
matchesIdin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a(Laaj;)Zintermediary method_40226Lnet/minecraft/class_6880;method_40226(Lnet/minecraft/class_2960;)Znamed matchesIdLnet/minecraft/util/registry/RegistryEntry;matchesId(Lnet/minecraft/util/Identifier;)Z
-
matchesKey
- Specified by:
matchesKeyin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a(Laai;)Zintermediary method_40225Lnet/minecraft/class_6880;method_40225(Lnet/minecraft/class_5321;)Znamed matchesKeyLnet/minecraft/util/registry/RegistryEntry;matchesKey(Lnet/minecraft/util/registry/RegistryKey;)Z
-
isIn
- Specified by:
isInin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a(Lakh;)Zintermediary method_40220Lnet/minecraft/class_6880;method_40220(Lnet/minecraft/class_6862;)Znamed isInLnet/minecraft/util/registry/RegistryEntry;isIn(Lnet/minecraft/tag/TagKey;)Z
-
matches
- Specified by:
matchesin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a(Ljava/util/function/Predicate;)Zintermediary method_40224Lnet/minecraft/class_6880;method_40224(Ljava/util/function/Predicate;)Znamed matchesLnet/minecraft/util/registry/RegistryEntry;matches(Ljava/util/function/Predicate;)Z
-
matchesRegistry
- Specified by:
matchesRegistryin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official aLhc;a(Lhm;)Zintermediary method_40222Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Znamed matchesRegistryLnet/minecraft/util/registry/RegistryEntry;matchesRegistry(Lnet/minecraft/util/registry/Registry;)Z
-
getKeyOrValue
- Specified by:
getKeyOrValuein interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official dLhc;d()Lcom/mojang/datafixers/util/Either;intermediary method_40229Lnet/minecraft/class_6880;method_40229()Lcom/mojang/datafixers/util/Either;named getKeyOrValueLnet/minecraft/util/registry/RegistryEntry;getKeyOrValue()Lcom/mojang/datafixers/util/Either;
-
getKey
- Specified by:
getKeyin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official eLhc;e()Ljava/util/Optional;intermediary method_40230Lnet/minecraft/class_6880;method_40230()Ljava/util/Optional;named getKeyLnet/minecraft/util/registry/RegistryEntry;getKey()Ljava/util/Optional;
-
getType
- Specified by:
getTypein interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official fLhc;f()Lhc$b;intermediary method_40231Lnet/minecraft/class_6880;method_40231()Lnet/minecraft/class_6880$class_6882;named getTypeLnet/minecraft/util/registry/RegistryEntry;getType()Lnet/minecraft/util/registry/RegistryEntry$Type;
-
hasKeyAndValue
public boolean hasKeyAndValue()- Specified by:
hasKeyAndValuein interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official bLhc;b()Zintermediary method_40227Lnet/minecraft/class_6880;method_40227()Znamed hasKeyAndValueLnet/minecraft/util/registry/RegistryEntry;hasKeyAndValue()Z
-
setKeyAndValue
- Mappings:
Namespace Name Mixin selector official aLhc$c;a(Laai;Ljava/lang/Object;)Vintermediary method_40236Lnet/minecraft/class_6880$class_6883;method_40236(Lnet/minecraft/class_5321;Ljava/lang/Object;)Vnamed setKeyAndValueLnet/minecraft/util/registry/RegistryEntry$Reference;setKeyAndValue(Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)V
-
setTags
- Mappings:
Namespace Name Mixin selector official aLhc$c;a(Ljava/util/Collection;)Vintermediary method_40235Lnet/minecraft/class_6880$class_6883;method_40235(Ljava/util/Collection;)Vnamed setTagsLnet/minecraft/util/registry/RegistryEntry$Reference;setTags(Ljava/util/Collection;)V
-
streamTags
- Specified by:
streamTagsin interfaceRegistryEntry<T>- Mappings:
Namespace Name Mixin selector official cLhc;c()Ljava/util/stream/Stream;intermediary method_40228Lnet/minecraft/class_6880;method_40228()Ljava/util/stream/Stream;named streamTagsLnet/minecraft/util/registry/RegistryEntry;streamTags()Ljava/util/stream/Stream;
-
toString
-