Package net.minecraft.data.recipes
Record Class SmithingTransformRecipeBuilder.Result
java.lang.Object
java.lang.Record
net.minecraft.data.recipes.SmithingTransformRecipeBuilder.Result
- All Implemented Interfaces:
 FinishedRecipe
- Enclosing class:
 - SmithingTransformRecipeBuilder
 
public static record SmithingTransformRecipeBuilder.Result(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementHolder advancement)
extends Record
implements FinishedRecipe
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.recipes.FinishedRecipe
FinishedRecipe.AdvancementData - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IngredientThe field for theadditionrecord component.private final AdvancementHolderThe field for theadvancementrecord component.private final IngredientThe field for thebaserecord component.private final ResourceLocationThe field for theidrecord component.private final ItemThe field for theresultrecord component.private final IngredientThe field for thetemplaterecord component.private final RecipeSerializer<?>The field for thetyperecord component. - 
Constructor Summary
ConstructorsConstructorDescriptionResult(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementHolder advancement) Creates an instance of aResultrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionaddition()Returns the value of theadditionrecord component.Returns the value of theadvancementrecord component.base()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.result()Returns the value of theresultrecord component.voidserializeRecipeData(com.google.gson.JsonObject p_266713_) template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.FinishedRecipe
advancementData, serializeRecipe 
- 
Field Details
- 
id
The field for theidrecord component. - 
type
The field for thetyperecord component. - 
template
The field for thetemplaterecord component. - 
base
The field for thebaserecord component. - 
addition
The field for theadditionrecord component. - 
result
The field for theresultrecord component. - 
advancement
The field for theadvancementrecord component. 
 - 
 - 
Constructor Details
- 
Result
public Result(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementHolder advancement) Creates an instance of aResultrecord class.- Parameters:
 id- the value for theidrecord componenttype- the value for thetyperecord componenttemplate- the value for thetemplaterecord componentbase- the value for thebaserecord componentaddition- the value for theadditionrecord componentresult- the value for theresultrecord componentadvancement- the value for theadvancementrecord component
 
 - 
 - 
Method Details
- 
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_266713_) - Specified by:
 serializeRecipeDatain interfaceFinishedRecipe
 - 
id
Returns the value of theidrecord component.- Specified by:
 idin interfaceFinishedRecipe- Returns:
 - the value of the 
idrecord component 
 - 
type
Returns the value of thetyperecord component.- Specified by:
 typein interfaceFinishedRecipe- Returns:
 - the value of the 
typerecord component 
 - 
advancement
Returns the value of theadvancementrecord component.- Specified by:
 advancementin interfaceFinishedRecipe- Returns:
 - the value of the 
advancementrecord component 
 - 
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 thetemplaterecord component.- Returns:
 - the value of the 
templaterecord component 
 - 
base
Returns the value of thebaserecord component.- Returns:
 - the value of the 
baserecord component 
 - 
addition
Returns the value of theadditionrecord component.- Returns:
 - the value of the 
additionrecord component 
 - 
result
Returns the value of theresultrecord component.- Returns:
 - the value of the 
resultrecord component 
 
 -