Record Class InventoryPlacement.ReturnTransfer
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.container.InventoryPlacement.ReturnTransfer
- Enclosing class:
InventoryPlacement
-
Constructor Summary
ConstructorsConstructorDescriptionReturnTransfer(int destination, int amount) Creates an instance of aReturnTransferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.intReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReturnTransfer
public ReturnTransfer(int destination, int amount) Creates an instance of aReturnTransferrecord class.- Parameters:
destination- the value for thedestinationrecord componentamount- the value for theamountrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
destination
public int destination()Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-