Record Class RecipeBookTestRecipe.Ingredients
java.lang.Object
java.lang.Record
net.minecraftforge.debug.recipe.recipebook.RecipeBookTestRecipe.Ingredients
- Enclosing class:
- RecipeBookTestRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RecipeBookTestRecipe.Ingredients>private final StringThe field for thegrouprecord component.static final com.mojang.serialization.Codec<Ingredient>The field for thepatternrecord component.private final Map<String,Ingredient> The field for thereciperecord component.private final ItemStackThe field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionIngredients(String group, List<String> pattern, Map<String, Ingredient> recipe, ItemStack result) Creates an instance of aIngredientsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.recipe()Returns the value of thereciperecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
group
The field for thegrouprecord component. -
pattern
The field for thepatternrecord component. -
recipe
The field for thereciperecord component. -
result
The field for theresultrecord component. -
VERIFY_LENGTH_2
-
VERIFY_SIZE
-
VERIFY_LENGTH_1
-
INGREDIENT_CODEC
-
CODEC
-
-
Constructor Details
-
Ingredients
public Ingredients(String group, List<String> pattern, Map<String, Ingredient> recipe, ItemStack result) Creates an instance of aIngredientsrecord class.- Parameters:
group- the value for thegrouprecord componentpattern- the value for thepatternrecord componentrecipe- the value for thereciperecord componentresult- the value for theresultrecord 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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
recipe
Returns the value of thereciperecord component.- Returns:
- the value of the
reciperecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-