Record Class TaskStatus.Item
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.status.TaskStatus.Item
- Enclosing class:
TaskStatus
public static record TaskStatus.Item(ResourceKey resource, TaskStatus.ItemType type, @Nullable ExternalPatternSinkKey sinkKey, long stored, long extracting, long processing, long scheduled, long crafting)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionItem(ResourceKey resource, TaskStatus.ItemType type, ExternalPatternSinkKey sinkKey, long stored, long extracting, long processing, long scheduled, long crafting) Creates an instance of aItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcrafting()Returns the value of thecraftingrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theextractingrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theprocessingrecord component.resource()Returns the value of theresourcerecord component.longReturns the value of thescheduledrecord component.sinkKey()Returns the value of thesinkKeyrecord component.longstored()Returns the value of thestoredrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Item
public Item(ResourceKey resource, TaskStatus.ItemType type, @Nullable ExternalPatternSinkKey sinkKey, long stored, long extracting, long processing, long scheduled, long crafting) Creates an instance of aItemrecord class.- Parameters:
resource- the value for theresourcerecord componenttype- the value for thetyperecord componentsinkKey- the value for thesinkKeyrecord componentstored- the value for thestoredrecord componentextracting- the value for theextractingrecord componentprocessing- the value for theprocessingrecord componentscheduled- the value for thescheduledrecord componentcrafting- the value for thecraftingrecord 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 '=='. -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
sinkKey
Returns the value of thesinkKeyrecord component.- Returns:
- the value of the
sinkKeyrecord component
-
stored
public long stored()Returns the value of thestoredrecord component.- Returns:
- the value of the
storedrecord component
-
extracting
public long extracting()Returns the value of theextractingrecord component.- Returns:
- the value of the
extractingrecord component
-
processing
public long processing()Returns the value of theprocessingrecord component.- Returns:
- the value of the
processingrecord component
-
scheduled
public long scheduled()Returns the value of thescheduledrecord component.- Returns:
- the value of the
scheduledrecord component
-
crafting
public long crafting()Returns the value of thecraftingrecord component.- Returns:
- the value of the
craftingrecord component
-