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$aintermediary net/minecraft/class_6880$class_6881named net/minecraft/util/registry/RegistryEntry$Directofficial aintermediary comp_349named 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getKey()com.mojang.datafixers.util.Either<RegistryKey<T>,T> getType()final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanmatches(Predicate<RegistryKey<T>> predicate) booleanmatchesId(Identifier id) booleanmatchesKey(RegistryKey<T> key) booleanmatchesRegistry(Registry<T> registry) toString()Returns a string representation of this record class.value()
-
Field Details
-
value
The field for thevaluerecord component.
-
-
Constructor Details
-
Direct
-
-
Method Details
-
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
-
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
-
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;
-
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:
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
-
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;
-
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:
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;
-