Record Class JeiAnvilLayout.Layout

java.lang.Object
java.lang.Record
com.hbm_m.compat.jei.JeiAnvilLayout.Layout
Enclosing class:
JeiAnvilLayout

public static record JeiAnvilLayout.Layout(int inLine, int outLine, int inOX, int inOY, int outOX, int outOY, int anvX, int anvY, AnvilRecipe.OverlayType shape) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Layout(int inLine, int outLine, int inOX, int inOY, int outOX, int outOY, int anvX, int anvY, AnvilRecipe.OverlayType shape)
    Creates an instance of a Layout record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the anvX record component.
    int
    Returns the value of the anvY record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the inLine record component.
    int
    Returns the value of the inOX record component.
    int
    Returns the value of the inOY record component.
    int
    Returns the value of the outLine record component.
    int
    Returns the value of the outOX record component.
    int
    Returns the value of the outOY record component.
    Returns the value of the shape record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Layout

      public Layout(int inLine, int outLine, int inOX, int inOY, int outOX, int outOY, int anvX, int anvY, AnvilRecipe.OverlayType shape)
      Creates an instance of a Layout record class.
      Parameters:
      inLine - the value for the inLine record component
      outLine - the value for the outLine record component
      inOX - the value for the inOX record component
      inOY - the value for the inOY record component
      outOX - the value for the outOX record component
      outOY - the value for the outOY record component
      anvX - the value for the anvX record component
      anvY - the value for the anvY record component
      shape - the value for the shape record component
  • Method Details

    • 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 o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • inLine

      public int inLine()
      Returns the value of the inLine record component.
      Returns:
      the value of the inLine record component
    • outLine

      public int outLine()
      Returns the value of the outLine record component.
      Returns:
      the value of the outLine record component
    • inOX

      public int inOX()
      Returns the value of the inOX record component.
      Returns:
      the value of the inOX record component
    • inOY

      public int inOY()
      Returns the value of the inOY record component.
      Returns:
      the value of the inOY record component
    • outOX

      public int outOX()
      Returns the value of the outOX record component.
      Returns:
      the value of the outOX record component
    • outOY

      public int outOY()
      Returns the value of the outOY record component.
      Returns:
      the value of the outOY record component
    • anvX

      public int anvX()
      Returns the value of the anvX record component.
      Returns:
      the value of the anvX record component
    • anvY

      public int anvY()
      Returns the value of the anvY record component.
      Returns:
      the value of the anvY record component
    • shape

      public AnvilRecipe.OverlayType shape()
      Returns the value of the shape record component.
      Returns:
      the value of the shape record component