Record Class ITerminalStorageTabCommon.SlotPositionFactors
java.lang.Object
java.lang.Record
org.cyclops.integratedterminals.api.terminalstorage.ITerminalStorageTabCommon.SlotPositionFactors
- Enclosing interface:
- ITerminalStorageTabCommon
public static record ITerminalStorageTabCommon.SlotPositionFactors(int offsetX, int offsetY, int gridXSize, int gridYSize, int playerInventoryOffsetX, int playerInventoryOffsetY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSlotPositionFactors(int offsetX, int offsetY, int gridXSize, int gridYSize, int playerInventoryOffsetX, int playerInventoryOffsetY) Creates an instance of aSlotPositionFactorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegridXSizerecord component.intReturns the value of thegridYSizerecord component.final inthashCode()Returns a hash code value for this object.intoffsetX()Returns the value of theoffsetXrecord component.intoffsetY()Returns the value of theoffsetYrecord component.intReturns the value of theplayerInventoryOffsetXrecord component.intReturns the value of theplayerInventoryOffsetYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlotPositionFactors
public SlotPositionFactors(int offsetX, int offsetY, int gridXSize, int gridYSize, int playerInventoryOffsetX, int playerInventoryOffsetY) Creates an instance of aSlotPositionFactorsrecord class.- Parameters:
offsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentgridXSize- the value for thegridXSizerecord componentgridYSize- the value for thegridYSizerecord componentplayerInventoryOffsetX- the value for theplayerInventoryOffsetXrecord componentplayerInventoryOffsetY- the value for theplayerInventoryOffsetYrecord 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. All components in this record class are compared with '=='. -
offsetX
public int offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public int offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
gridXSize
public int gridXSize()Returns the value of thegridXSizerecord component.- Returns:
- the value of the
gridXSizerecord component
-
gridYSize
public int gridYSize()Returns the value of thegridYSizerecord component.- Returns:
- the value of the
gridYSizerecord component
-
playerInventoryOffsetX
public int playerInventoryOffsetX()Returns the value of theplayerInventoryOffsetXrecord component.- Returns:
- the value of the
playerInventoryOffsetXrecord component
-
playerInventoryOffsetY
public int playerInventoryOffsetY()Returns the value of theplayerInventoryOffsetYrecord component.- Returns:
- the value of the
playerInventoryOffsetYrecord component
-