Package net.minecraft

Record Class class_8786<T extends Recipe<?>>

java.lang.Object
java.lang.Record
net.minecraft.class_8786<T>
Record Components:
comp_1932 -
comp_1933 -

public record class_8786<T extends Recipe<?>>(Identifier comp_1932, T extends Recipe<?> comp_1933) extends Record
Mappings:
Namespace Name
official cmf
intermediary net/minecraft/class_8786
named net/minecraft/class_8786
official a
intermediary comp_1932
named comp_1932
official b
intermediary comp_1933
named comp_1933
  • Field Details

    • comp_1932

      private final Identifier comp_1932
      The field for the comp_1932 record component.
    • comp_1933

      private final T extends Recipe<?> comp_1933
      The field for the comp_1933 record component.
  • Constructor Details

    • class_8786

      public class_8786(Identifier identifier, T t)
  • Method Details

    • equals

      public 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.
    • hashCode

      public 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
    • toString

      public 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
    • comp_1932

      public Identifier comp_1932()
      Returns the value of the comp_1932 record component.
      Returns:
      the value of the comp_1932 record component
    • comp_1933

      public T comp_1933()
      Returns the value of the comp_1933 record component.
      Returns:
      the value of the comp_1933 record component