Package net.minecraft.data
Class SmithingRecipeBuilder.Result
- java.lang.Object
-
- net.minecraft.data.SmithingRecipeBuilder.Result
-
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- SmithingRecipeBuilder
public static class SmithingRecipeBuilder.Result extends java.lang.Object implements IFinishedRecipe
-
-
Field Summary
Fields Modifier and Type Field Description private Ingredient
addition
private Advancement.Builder
advancement
private ResourceLocation
advancementId
private Ingredient
base
private ResourceLocation
id
private Item
result
private IRecipeSerializer<?>
type
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getAdvancementId()
ResourceLocation
getId()
IRecipeSerializer<?>
getType()
com.google.gson.JsonObject
serializeAdvancement()
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 Detail
-
id
private final ResourceLocation id
-
base
private final Ingredient base
-
addition
private final Ingredient addition
-
result
private final Item result
-
advancement
private final Advancement.Builder advancement
-
advancementId
private final ResourceLocation advancementId
-
type
private final IRecipeSerializer<?> type
-
-
Constructor Detail
-
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 Detail
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_)
- Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIFinishedRecipe
-
getType
public IRecipeSerializer<?> getType()
- Specified by:
getType
in interfaceIFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()
- Specified by:
serializeAdvancement
in interfaceIFinishedRecipe
-
getAdvancementId
@Nullable public ResourceLocation getAdvancementId()
- Specified by:
getAdvancementId
in interfaceIFinishedRecipe
-
-