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 aEvolvedRecipeHelperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancooked()Returns the value of thecookedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.template()Returns the value of thetemplaterecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EvolvedRecipeHelper
Creates an instance of aEvolvedRecipeHelperrecord class.- Parameters:
template- the value for thetemplaterecord componentnumber- the value for thenumberrecord componentcooked- the value for thecookedrecord 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 thecomparemethod from their corresponding wrapper classes. -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
cooked
public boolean cooked()Returns the value of thecookedrecord component.- Returns:
- the value of the
cookedrecord component
-