Record Class EvolvedRecipeHelper
java.lang.Object
java.lang.Record
generation.builders.EvolvedRecipeHelper
public record EvolvedRecipeHelper(EvolvedRecipeTemplateKey template, int number, boolean cooked)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEvolvedRecipeHelper
(EvolvedRecipeTemplateKey template, int number, boolean cooked) Creates an instance of aEvolvedRecipeHelper
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
cooked()
Returns the value of thecooked
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.int
number()
Returns the value of thenumber
record component.template()
Returns the value of thetemplate
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
EvolvedRecipeHelper
Creates an instance of aEvolvedRecipeHelper
record class.- Parameters:
template
- the value for thetemplate
record componentnumber
- the value for thenumber
record componentcooked
- the value for thecooked
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
template
Returns the value of thetemplate
record component.- Returns:
- the value of the
template
record component
-
number
public int number()Returns the value of thenumber
record component.- Returns:
- the value of the
number
record component
-
cooked
public boolean cooked()Returns the value of thecooked
record component.- Returns:
- the value of the
cooked
record component
-