Package net.minecraft.data
Class SmithingRecipeBuilder.Result
java.lang.Object
net.minecraft.data.SmithingRecipeBuilder.Result
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- SmithingRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
private final Advancement.Builder
private final ResourceLocation
private final Ingredient
private final ResourceLocation
private final Item
private final IRecipeSerializer<?>
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_i232550_1_, IRecipeSerializer<?> p_i232550_2_, Ingredient p_i232550_3_, Ingredient p_i232550_4_, Item p_i232550_5_, Advancement.Builder p_i232550_6_, ResourceLocation p_i232550_7_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_218610_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.data.IFinishedRecipe
serializeRecipe
-
Field Details
-
id
-
base
-
addition
-
result
-
advancement
-
advancementId
-
type
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_i232550_1_, IRecipeSerializer<?> p_i232550_2_, Ingredient p_i232550_3_, Ingredient p_i232550_4_, Item p_i232550_5_, Advancement.Builder p_i232550_6_, ResourceLocation p_i232550_7_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_) - Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getId
- Specified by:
getId
in interfaceIFinishedRecipe
-
getType
- Specified by:
getType
in interfaceIFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceIFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceIFinishedRecipe
-