Package net.minecraft.util.registry
Record Class RegistryEntry.Direct<T>
java.lang.Object
java.lang.Record
net.minecraft.util.registry.RegistryEntry.Direct<T>
- Record Components:
value
-
- All Implemented Interfaces:
RegistryEntry<T>
- Enclosing interface:
RegistryEntry<T>
- Mappings:
Namespace Name official hc$a
intermediary net/minecraft/class_6880$class_6881
named net/minecraft/util/registry/RegistryEntry$Direct
official a
intermediary comp_349
named value
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.registry.RegistryEntry
RegistryEntry.Direct<T>, RegistryEntry.Reference<T>, RegistryEntry.Type
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getKey()
com.mojang.datafixers.util.Either<RegistryKey<T>,
T> getType()
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
matches
(Predicate<RegistryKey<T>> predicate) boolean
matchesId
(Identifier id) boolean
matchesKey
(RegistryKey<T> key) boolean
matchesRegistry
(Registry<T> registry) toString()
Returns a string representation of this record class.value()
-
Field Details
-
value
The field for thevalue
record component.
-
-
Constructor Details
-
Direct
-
-
Method Details
-
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
-
matchesId
- Specified by:
matchesId
in interfaceRegistryEntry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhc;a(Laaj;)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(Laai;)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(Lakh;)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
-
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;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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
-
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;
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
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;
-