Package net.minecraft

Record Class class_7066.class_7070<T>

java.lang.Object
java.lang.Record
net.minecraft.class_7066.class_7070<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_7070<T>(TagKey<T> key) extends Record implements class_7066.class_7068<T>
Mappings:
Namespace Name
official ek$d
intermediary net/minecraft/class_7066$class_7070
named net/minecraft/class_7066$class_7070
official a
intermediary comp_523
named key
  • Field Details

    • key

      private final TagKey<T> key
      The field for the key record component.
  • Constructor Details

    • class_7070

      class_7070(TagKey<T> tagKey)
  • Method Details

    • method_41173

      public com.mojang.datafixers.util.Either<RegistryKey<T>,TagKey<T>> method_41173()
      Specified by:
      method_41173 in interface class_7066.class_7068<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lek$b;a()Lcom/mojang/datafixers/util/Either;
      intermediary method_41173 Lnet/minecraft/class_7066$class_7068;method_41173()Lcom/mojang/datafixers/util/Either;
      named method_41173 Lnet/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_41175 in interface class_7066.class_7068<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lek$b;a(Lyr;)Ljava/util/Optional;
      intermediary method_41175 Lnet/minecraft/class_7066$class_7068;method_41175(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named method_41175 Lnet/minecraft/class_7066$class_7068;method_41175(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
    • test

      public boolean test(RegistryEntry<T> registryEntry)
      Specified by:
      test in interface Predicate<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lek$d;a(Lgr;)Z
      intermediary method_41180 Lnet/minecraft/class_7066$class_7070;method_41180(Lnet/minecraft/class_6880;)Z
      named test Lnet/minecraft/class_7066$class_7070;test(Lnet/minecraft/util/registry/RegistryEntry;)Z
    • method_41176

      public String method_41176()
      Specified by:
      method_41176 in interface class_7066.class_7068<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lek$b;b()Ljava/lang/String;
      intermediary method_41176 Lnet/minecraft/class_7066$class_7068;method_41176()Ljava/lang/String;
      named method_41176 Lnet/minecraft/class_7066$class_7068;method_41176()Ljava/lang/String;
    • toString

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • key

      public TagKey<T> key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component