Package net.minecraft.data
Class CookingRecipeBuilder.Result
- java.lang.Object
-
- net.minecraft.data.CookingRecipeBuilder.Result
-
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- CookingRecipeBuilder
public static class CookingRecipeBuilder.Result extends java.lang.Object implements IFinishedRecipe
-
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builderadvancementprivate ResourceLocationadvancementIdprivate intcookingTimeprivate floatexperienceprivate java.lang.Stringgroupprivate ResourceLocationidprivate Ingredientingredientprivate Itemresultprivate IRecipeSerializer<? extends AbstractCookingRecipe>serializer
-
Constructor Summary
Constructors Constructor Description Result(ResourceLocation p_i50605_1_, java.lang.String p_i50605_2_, Ingredient p_i50605_3_, Item p_i50605_4_, float p_i50605_5_, int p_i50605_6_, Advancement.Builder p_i50605_7_, ResourceLocation p_i50605_8_, IRecipeSerializer<? extends AbstractCookingRecipe> p_i50605_9_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocationgetAdvancementId()ResourceLocationgetId()IRecipeSerializer<?>getType()com.google.gson.JsonObjectserializeAdvancement()voidserializeRecipeData(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
-
group
private final java.lang.String group
-
ingredient
private final Ingredient ingredient
-
result
private final Item result
-
experience
private final float experience
-
cookingTime
private final int cookingTime
-
advancement
private final Advancement.Builder advancement
-
advancementId
private final ResourceLocation advancementId
-
serializer
private final IRecipeSerializer<? extends AbstractCookingRecipe> serializer
-
-
Constructor Detail
-
Result
public Result(ResourceLocation p_i50605_1_, java.lang.String p_i50605_2_, Ingredient p_i50605_3_, Item p_i50605_4_, float p_i50605_5_, int p_i50605_6_, Advancement.Builder p_i50605_7_, ResourceLocation p_i50605_8_, IRecipeSerializer<? extends AbstractCookingRecipe> p_i50605_9_)
-
-
Method Detail
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_)
- Specified by:
serializeRecipeDatain interfaceIFinishedRecipe
-
getType
public IRecipeSerializer<?> getType()
- Specified by:
getTypein interfaceIFinishedRecipe
-
getId
public ResourceLocation getId()
- Specified by:
getIdin interfaceIFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()
- Specified by:
serializeAdvancementin interfaceIFinishedRecipe
-
getAdvancementId
@Nullable public ResourceLocation getAdvancementId()
- Specified by:
getAdvancementIdin interfaceIFinishedRecipe
-
-