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 SummaryNested classes/interfaces inherited from interface net.minecraft.data.recipes.FinishedRecipeFinishedRecipe.AdvancementData
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionResult(ResourceLocation id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementHolder advancement) Creates an instance of aResultrecord class.
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.FinishedRecipeadvancementData, serializeRecipe
- 
Field Details- 
idThe field for theidrecord component.
- 
typeThe field for thetyperecord component.
- 
templateThe field for thetemplaterecord component.
- 
baseThe field for thebaserecord component.
- 
additionThe field for theadditionrecord component.
- 
resultThe field for theresultrecord component.
- 
advancementThe field for theadvancementrecord component.
 
- 
- 
Constructor Details- 
Resultpublic 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 the- idrecord component
- type- the value for the- typerecord component
- template- the value for the- templaterecord component
- base- the value for the- baserecord component
- addition- the value for the- additionrecord component
- result- the value for the- resultrecord component
- advancement- the value for the- advancementrecord component
 
 
- 
- 
Method Details- 
serializeRecipeDatapublic void serializeRecipeData(com.google.gson.JsonObject p_266713_) - Specified by:
- serializeRecipeDatain interface- FinishedRecipe
 
- 
idReturns the value of theidrecord component.- Specified by:
- idin interface- FinishedRecipe
- Returns:
- the value of the idrecord component
 
- 
typeReturns the value of thetyperecord component.- Specified by:
- typein interface- FinishedRecipe
- Returns:
- the value of the typerecord component
 
- 
advancementReturns the value of theadvancementrecord component.- Specified by:
- advancementin interface- FinishedRecipe
- Returns:
- the value of the advancementrecord component
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
templateReturns the value of thetemplaterecord component.- Returns:
- the value of the templaterecord component
 
- 
baseReturns the value of thebaserecord component.- Returns:
- the value of the baserecord component
 
- 
additionReturns the value of theadditionrecord component.- Returns:
- the value of the additionrecord component
 
- 
resultReturns the value of theresultrecord component.- Returns:
- the value of the resultrecord component
 
 
-