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$c
intermediary net/minecraft/class_6880$class_6883
named net/minecraft/util/registry/RegistryEntry$Reference
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.registry.RegistryEntry
RegistryEntry.Direct<T>, RegistryEntry.Reference<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntry.Reference.Type
private @Nullable RegistryKey<T>
private T
-
Constructor Summary
ModifierConstructorDescriptionprivate
Reference
(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()
boolean
static <T> RegistryEntry.Reference<T>
Deprecated.boolean
boolean
matches
(Predicate<RegistryKey<T>> predicate) boolean
matchesId
(Identifier id) boolean
matchesKey
(RegistryKey<T> key) boolean
matchesRegistry
(Registry<T> registry) (package private) void
setKeyAndValue
(RegistryKey<T> key, T value) (package private) void
setTags
(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 a
Lhc$c;a:Lhm;
intermediary field_36449
Lnet/minecraft/class_6880$class_6883;field_36449:Lnet/minecraft/class_2378;
named registry
Lnet/minecraft/util/registry/RegistryEntry$Reference;registry:Lnet/minecraft/util/registry/Registry;
-
tags
- Mappings:
Namespace Name Mixin selector official b
Lhc$c;b:Ljava/util/Set;
intermediary field_36450
Lnet/minecraft/class_6880$class_6883;field_36450:Ljava/util/Set;
named tags
Lnet/minecraft/util/registry/RegistryEntry$Reference;tags:Ljava/util/Set;
-
referenceType
- Mappings:
Namespace Name Mixin selector official c
Lhc$c;c:Lhc$c$a;
intermediary field_36451
Lnet/minecraft/class_6880$class_6883;field_36451:Lnet/minecraft/class_6880$class_6883$class_6884;
named referenceType
Lnet/minecraft/util/registry/RegistryEntry$Reference;referenceType:Lnet/minecraft/util/registry/RegistryEntry$Reference$Type;
-
registryKey
- Mappings:
Namespace Name Mixin selector official d
Lhc$c;d:Laba;
intermediary field_36452
Lnet/minecraft/class_6880$class_6883;field_36452:Lnet/minecraft/class_5321;
named registryKey
Lnet/minecraft/util/registry/RegistryEntry$Reference;registryKey:Lnet/minecraft/util/registry/RegistryKey;
-
value
- Mappings:
Namespace Name Mixin selector official e
Lhc$c;e:Ljava/lang/Object;
intermediary field_36453
Lnet/minecraft/class_6880$class_6883;field_36453:Ljava/lang/Object;
named value
Lnet/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;Laba;Ljava/lang/Object;)V
intermediary <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;)V
named <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 a
Lhc$c;a(Lhm;Laba;)Lhc$c;
intermediary method_40234
Lnet/minecraft/class_6880$class_6883;method_40234(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;
named standAlone
Lnet/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 a
Lhc$c;a(Lhm;Ljava/lang/Object;)Lhc$c;
intermediary method_40233
Lnet/minecraft/class_6880$class_6883;method_40233(Lnet/minecraft/class_2378;Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;
named intrusive
Lnet/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 g
Lhc$c;g()Laba;
intermediary method_40237
Lnet/minecraft/class_6880$class_6883;method_40237()Lnet/minecraft/class_5321;
named registryKey
Lnet/minecraft/util/registry/RegistryEntry$Reference;registryKey()Lnet/minecraft/util/registry/RegistryKey;
-
value
- Specified by:
value
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a()Ljava/lang/Object;
intermediary comp_349
Lnet/minecraft/class_6880;comp_349()Ljava/lang/Object;
named value
Lnet/minecraft/util/registry/RegistryEntry;value()Ljava/lang/Object;
-
matchesId
- Specified by:
matchesId
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Labb;)Z
intermediary method_40226
Lnet/minecraft/class_6880;method_40226(Lnet/minecraft/class_2960;)Z
named matchesId
Lnet/minecraft/util/registry/RegistryEntry;matchesId(Lnet/minecraft/util/Identifier;)Z
-
matchesKey
- Specified by:
matchesKey
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Laba;)Z
intermediary method_40225
Lnet/minecraft/class_6880;method_40225(Lnet/minecraft/class_5321;)Z
named matchesKey
Lnet/minecraft/util/registry/RegistryEntry;matchesKey(Lnet/minecraft/util/registry/RegistryKey;)Z
-
isIn
- Specified by:
isIn
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Lakz;)Z
intermediary method_40220
Lnet/minecraft/class_6880;method_40220(Lnet/minecraft/class_6862;)Z
named isIn
Lnet/minecraft/util/registry/RegistryEntry;isIn(Lnet/minecraft/tag/TagKey;)Z
-
matches
- Specified by:
matches
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Ljava/util/function/Predicate;)Z
intermediary method_40224
Lnet/minecraft/class_6880;method_40224(Ljava/util/function/Predicate;)Z
named matches
Lnet/minecraft/util/registry/RegistryEntry;matches(Ljava/util/function/Predicate;)Z
-
matchesRegistry
- Specified by:
matchesRegistry
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Lhm;)Z
intermediary method_40222
Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Z
named matchesRegistry
Lnet/minecraft/util/registry/RegistryEntry;matchesRegistry(Lnet/minecraft/util/registry/Registry;)Z
-
getKeyOrValue
- Specified by:
getKeyOrValue
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official d
Lhc;d()Lcom/mojang/datafixers/util/Either;
intermediary method_40229
Lnet/minecraft/class_6880;method_40229()Lcom/mojang/datafixers/util/Either;
named getKeyOrValue
Lnet/minecraft/util/registry/RegistryEntry;getKeyOrValue()Lcom/mojang/datafixers/util/Either;
-
getKey
- Specified by:
getKey
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official e
Lhc;e()Ljava/util/Optional;
intermediary method_40230
Lnet/minecraft/class_6880;method_40230()Ljava/util/Optional;
named getKey
Lnet/minecraft/util/registry/RegistryEntry;getKey()Ljava/util/Optional;
-
getType
- Specified by:
getType
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official f
Lhc;f()Lhc$b;
intermediary method_40231
Lnet/minecraft/class_6880;method_40231()Lnet/minecraft/class_6880$class_6882;
named getType
Lnet/minecraft/util/registry/RegistryEntry;getType()Lnet/minecraft/util/registry/RegistryEntry$Type;
-
hasKeyAndValue
public boolean hasKeyAndValue()- Specified by:
hasKeyAndValue
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official b
Lhc;b()Z
intermediary method_40227
Lnet/minecraft/class_6880;method_40227()Z
named hasKeyAndValue
Lnet/minecraft/util/registry/RegistryEntry;hasKeyAndValue()Z
-
setKeyAndValue
- Mappings:
Namespace Name Mixin selector official a
Lhc$c;a(Laba;Ljava/lang/Object;)V
intermediary method_40236
Lnet/minecraft/class_6880$class_6883;method_40236(Lnet/minecraft/class_5321;Ljava/lang/Object;)V
named setKeyAndValue
Lnet/minecraft/util/registry/RegistryEntry$Reference;setKeyAndValue(Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;)V
-
setTags
- Mappings:
Namespace Name Mixin selector official a
Lhc$c;a(Ljava/util/Collection;)V
intermediary method_40235
Lnet/minecraft/class_6880$class_6883;method_40235(Ljava/util/Collection;)V
named setTags
Lnet/minecraft/util/registry/RegistryEntry$Reference;setTags(Ljava/util/Collection;)V
-
streamTags
- Specified by:
streamTags
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhc;c()Ljava/util/stream/Stream;
intermediary method_40228
Lnet/minecraft/class_6880;method_40228()Ljava/util/stream/Stream;
named streamTags
Lnet/minecraft/util/registry/RegistryEntry;streamTags()Ljava/util/stream/Stream;
-
toString
-