Record Class PatternResolver.ResolvedSmithingTablePattern
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.autocrafting.PatternResolver.ResolvedSmithingTablePattern
- Enclosing class:
PatternResolver
public static record PatternResolver.ResolvedSmithingTablePattern(ItemResource template, ItemResource base, ItemResource addition, ItemResource output, Pattern pattern)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedSmithingTablePattern
(ItemResource template, ItemResource base, ItemResource addition, ItemResource output, Pattern pattern) Creates an instance of aResolvedSmithingTablePattern
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddition()
Returns the value of theaddition
record component.base()
Returns the value of thebase
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.output()
Returns the value of theoutput
record component.pattern()
Returns the value of thepattern
record component.template()
Returns the value of thetemplate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResolvedSmithingTablePattern
public ResolvedSmithingTablePattern(ItemResource template, ItemResource base, ItemResource addition, ItemResource output, Pattern pattern) Creates an instance of aResolvedSmithingTablePattern
record class.- Parameters:
template
- the value for thetemplate
record componentbase
- the value for thebase
record componentaddition
- the value for theaddition
record componentoutput
- the value for theoutput
record componentpattern
- the value for thepattern
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
template
Returns the value of thetemplate
record component.- Returns:
- the value of the
template
record component
-
base
Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-
addition
Returns the value of theaddition
record component.- Returns:
- the value of the
addition
record component
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-