Package com.hbm_m.compat.jei
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
ConstructorsConstructorDescriptionLayout(int inLine, int outLine, int inOX, int inOY, int outOX, int outOY, int anvX, int anvY, AnvilRecipe.OverlayType shape) Creates an instance of aLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintanvX()Returns the value of theanvXrecord component.intanvY()Returns the value of theanvYrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinLine()Returns the value of theinLinerecord component.intinOX()Returns the value of theinOXrecord component.intinOY()Returns the value of theinOYrecord component.intoutLine()Returns the value of theoutLinerecord component.intoutOX()Returns the value of theoutOXrecord component.intoutOY()Returns the value of theoutOYrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.
-
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 aLayoutrecord class.- Parameters:
inLine- the value for theinLinerecord componentoutLine- the value for theoutLinerecord componentinOX- the value for theinOXrecord componentinOY- the value for theinOYrecord componentoutOX- the value for theoutOXrecord componentoutOY- the value for theoutOYrecord componentanvX- the value for theanvXrecord componentanvY- the value for theanvYrecord componentshape- the value for theshaperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inLine
public int inLine()Returns the value of theinLinerecord component.- Returns:
- the value of the
inLinerecord component
-
outLine
public int outLine()Returns the value of theoutLinerecord component.- Returns:
- the value of the
outLinerecord component
-
inOX
public int inOX()Returns the value of theinOXrecord component.- Returns:
- the value of the
inOXrecord component
-
inOY
public int inOY()Returns the value of theinOYrecord component.- Returns:
- the value of the
inOYrecord component
-
outOX
public int outOX()Returns the value of theoutOXrecord component.- Returns:
- the value of the
outOXrecord component
-
outOY
public int outOY()Returns the value of theoutOYrecord component.- Returns:
- the value of the
outOYrecord component
-
anvX
public int anvX()Returns the value of theanvXrecord component.- Returns:
- the value of the
anvXrecord component
-
anvY
public int anvY()Returns the value of theanvYrecord component.- Returns:
- the value of the
anvYrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-