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 aCraftingJobStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptioncrafting()
Returns the value of thecrafting
record component.long
Returns the value of theelapsedTimeNanos
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
progress()
Returns the value of theprogress
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalItems
record component.
-
Constructor Details
-
CraftingJobStatus
public CraftingJobStatus(GenericStack crafting, long totalItems, long progress, long elapsedTimeNanos) Creates an instance of aCraftingJobStatus
record class.- Parameters:
crafting
- the value for thecrafting
record componenttotalItems
- the value for thetotalItems
record componentprogress
- the value for theprogress
record componentelapsedTimeNanos
- the value for theelapsedTimeNanos
record 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 thecrafting
record component.- Returns:
- the value of the
crafting
record component
-
totalItems
public long totalItems()Returns the value of thetotalItems
record component.- Returns:
- the value of the
totalItems
record component
-
progress
public long progress()Returns the value of theprogress
record component.- Returns:
- the value of the
progress
record component
-
elapsedTimeNanos
public long elapsedTimeNanos()Returns the value of theelapsedTimeNanos
record component.- Returns:
- the value of the
elapsedTimeNanos
record component
-