Package emi.dev.emi.emi.data
Record Class RecipeDefaults.Resolution
java.lang.Object
java.lang.Record
emi.dev.emi.emi.data.RecipeDefaults.Resolution
- Enclosing class:
- RecipeDefaults
public static record RecipeDefaults.Resolution(ResourceLocation recipe, List<com.google.gson.JsonElement> stacks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResolution(ResourceLocation recipe, List<com.google.gson.JsonElement> stacks) Creates an instance of aResolutionrecord 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.recipe()Returns the value of thereciperecord component.List<com.google.gson.JsonElement>stacks()Returns the value of thestacksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resolution
Creates an instance of aResolutionrecord class.- Parameters:
recipe- the value for thereciperecord componentstacks- the value for thestacksrecord 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). -
recipe
Returns the value of thereciperecord component.- Returns:
- the value of the
reciperecord component
-
stacks
Returns the value of thestacksrecord component.- Returns:
- the value of the
stacksrecord component
-