Record Class Preview
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.preview.Preview
@API(status=STABLE,
since="2.0.0-milestone.4.9")
public record Preview(PreviewType type, List<PreviewItem> items, List<ResourceAmount> outputsOfPatternWithCycle)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreview(PreviewType type, List<PreviewItem> items, List<ResourceAmount> outputsOfPatternWithCycle) Creates an instance of aPreviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.Returns the value of theoutputsOfPatternWithCyclerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Preview
public Preview(PreviewType type, List<PreviewItem> items, List<ResourceAmount> outputsOfPatternWithCycle) Creates an instance of aPreviewrecord class.- Parameters:
type- the value for thetyperecord componentitems- the value for theitemsrecord componentoutputsOfPatternWithCycle- the value for theoutputsOfPatternWithCyclerecord 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 withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
outputsOfPatternWithCycle
Returns the value of theoutputsOfPatternWithCyclerecord component.- Returns:
- the value of the
outputsOfPatternWithCyclerecord component
-