Package net.minecraft.data
Class CookingRecipeBuilder.Result
java.lang.Object
net.minecraft.data.CookingRecipeBuilder.Result
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- CookingRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final ResourceLocation
private final int
private final float
private final String
private final ResourceLocation
private final Ingredient
private final Item
private final IRecipeSerializer<? extends AbstractCookingRecipe>
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_i50605_1_, 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
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
-
group
-
ingredient
-
result
-
experience
private final float experience -
cookingTime
private final int cookingTime -
advancement
-
advancementId
-
serializer
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_i50605_1_, 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 Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_) - Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getType
- Specified by:
getType
in interfaceIFinishedRecipe
-
getId
- Specified by:
getId
in interfaceIFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceIFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceIFinishedRecipe
-