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 gs$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) (package private) void
setKeyAndValue
(RegistryKey<T> key, T value) boolean
setRegistry
(Registry<T> registry) (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
Lgs$c;a:Lhb;
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
Lgs$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
Lgs$c;c:Lgs$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
Lgs$c;d:Lys;
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
Lgs$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>
Lgs$c;<init>(Lgs$c$a;Lhb;Lys;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
Lgs$c;a(Lhb;Lys;)Lgs$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 registryKey) Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lgs$c;a(Lhb;Ljava/lang/Object;)Lgs$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
Lgs$c;g()Lys;
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
Lgs;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
Lgs;a(Lyt;)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
Lgs;a(Lys;)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
Lgs;a(Laif;)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
Lgs;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
-
setRegistry
- Specified by:
setRegistry
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lgs;a(Lhb;)Z
intermediary method_40222
Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Z
named setRegistry
Lnet/minecraft/util/registry/RegistryEntry;setRegistry(Lnet/minecraft/util/registry/Registry;)Z
-
getKeyOrValue
- Specified by:
getKeyOrValue
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official d
Lgs;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
Lgs;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
Lgs;f()Lgs$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
Lgs;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
Lgs$c;a(Lys;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
Lgs$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
Lgs;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
-