Package net.minecraft
Record Class class_7066.class_7067<T>
java.lang.Object
java.lang.Record
net.minecraft.class_7066.class_7067<T>
- Record Components:
key-
- All Implemented Interfaces:
Predicate<RegistryEntry<T>>,class_7066.class_7068<T>
- Enclosing class:
class_7066<T>
private static record class_7066.class_7067<T>(RegistryKey<T> key)
extends Record
implements class_7066.class_7068<T>
- Mappings:
Namespace Name official ek$aintermediary net/minecraft/class_7066$class_7067named net/minecraft/class_7066$class_7067official aintermediary comp_522named key
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<T>The field for thekeyrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.com.mojang.datafixers.util.Either<RegistryKey<T>,TagKey<T>> <E> Optional<class_7066.class_7068<E>>method_41175(RegistryKey<? extends Registry<E>> registryKey) booleantest(RegistryEntry<T> registryEntry) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
key
The field for thekeyrecord component.
-
-
Constructor Details
-
class_7067
class_7067(RegistryKey<T> registryKey)
-
-
Method Details
-
method_41173
- Specified by:
method_41173in interfaceclass_7066.class_7068<T>- Mappings:
Namespace Name Mixin selector official aLek$b;a()Lcom/mojang/datafixers/util/Either;intermediary method_41173Lnet/minecraft/class_7066$class_7068;method_41173()Lcom/mojang/datafixers/util/Either;named method_41173Lnet/minecraft/class_7066$class_7068;method_41173()Lcom/mojang/datafixers/util/Either;
-
method_41175
public <E> Optional<class_7066.class_7068<E>> method_41175(RegistryKey<? extends Registry<E>> registryKey) - Specified by:
method_41175in interfaceclass_7066.class_7068<T>- Mappings:
Namespace Name Mixin selector official aLek$b;a(Lyr;)Ljava/util/Optional;intermediary method_41175Lnet/minecraft/class_7066$class_7068;method_41175(Lnet/minecraft/class_5321;)Ljava/util/Optional;named method_41175Lnet/minecraft/class_7066$class_7068;method_41175(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
-
test
- Specified by:
testin interfacePredicate<T>- Mappings:
Namespace Name Mixin selector official aLek$a;a(Lgr;)Zintermediary method_41174Lnet/minecraft/class_7066$class_7067;method_41174(Lnet/minecraft/class_6880;)Znamed testLnet/minecraft/class_7066$class_7067;test(Lnet/minecraft/util/registry/RegistryEntry;)Z
-
method_41176
- Specified by:
method_41176in interfaceclass_7066.class_7068<T>- Mappings:
Namespace Name Mixin selector official bLek$b;b()Ljava/lang/String;intermediary method_41176Lnet/minecraft/class_7066$class_7068;method_41176()Ljava/lang/String;named method_41176Lnet/minecraft/class_7066$class_7068;method_41176()Ljava/lang/String;
-
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. -
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-