Package appeng.api.networking.crafting
Record Class CraftingJobStatus
java.lang.Object
java.lang.Record
appeng.api.networking.crafting.CraftingJobStatus
public record CraftingJobStatus(GenericStack crafting, long totalItems, long progress, long elapsedTimeNanos)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCraftingJobStatus(GenericStack crafting, long totalItems, long progress, long elapsedTimeNanos) Creates an instance of aCraftingJobStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncrafting()Returns the value of thecraftingrecord component.longReturns the value of theelapsedTimeNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longprogress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
CraftingJobStatus
public CraftingJobStatus(GenericStack crafting, long totalItems, long progress, long elapsedTimeNanos) Creates an instance of aCraftingJobStatusrecord class.- Parameters:
crafting- the value for thecraftingrecord componenttotalItems- the value for thetotalItemsrecord componentprogress- the value for theprogressrecord componentelapsedTimeNanos- the value for theelapsedTimeNanosrecord 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 '=='. -
crafting
Returns the value of thecraftingrecord component.- Returns:
- the value of the
craftingrecord component
-
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
progress
public long progress()Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
elapsedTimeNanos
public long elapsedTimeNanos()Returns the value of theelapsedTimeNanosrecord component.- Returns:
- the value of the
elapsedTimeNanosrecord component
-