Package net.minecraft

Record Class class_12095<T extends class_12097>

java.lang.Object
java.lang.Record
net.minecraft.class_12095<T>
Record Components:
test -
All Implemented Interfaces:
Predicate<T>

public record class_12095<T extends class_12097>(class_12090 test) extends Record implements Predicate<T>
Mappings:
Namespace Name
named net/minecraft/class_12095
intermediary net/minecraft/class_12095
official bbs
named test
intermediary comp_4945
official a
  • Field Details

    • test

      private final class_12090 test
      The field for the test record component.
  • Constructor Details

    • class_12095

      public class_12095(class_12090 class_12090)
  • Method Details

    • test

      public boolean test(T t)
      Specified by:
      test in interface Predicate<T extends class_12097>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/class_12095;test(Lnet/minecraft/class_12097;)Z
      intermediary method_75032 Lnet/minecraft/class_12095;method_75032(Lnet/minecraft/class_12097;)Z
      official a Lbbs;a(Lbbu;)Z
    • 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.
    • test

      public class_12090 test()
      Returns the value of the test record component.
      Returns:
      the value of the test record component