Package net.minecraft.data.recipes
Class SimpleCookingRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.SimpleCookingRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- SimpleCookingRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final ResourceLocation
private final CookingBookCategory
private final int
private final float
private final String
private final ResourceLocation
private final Ingredient
private final Item
private final RecipeSerializer<? extends AbstractCookingRecipe>
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_252275_, String p_248665_, CookingBookCategory p_251944_, Ingredient p_249473_, Item p_252028_, float p_249206_, int p_251002_, Advancement.Builder p_249151_, ResourceLocation p_252090_, RecipeSerializer<? extends AbstractCookingRecipe> p_249537_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_126297_) 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.recipes.FinishedRecipe
serializeRecipe
-
Field Details
-
id
-
group
-
category
-
ingredient
-
result
-
experience
private final float experience -
cookingTime
private final int cookingTime -
advancement
-
advancementId
-
serializer
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_252275_, String p_248665_, CookingBookCategory p_251944_, Ingredient p_249473_, Item p_252028_, float p_249206_, int p_251002_, Advancement.Builder p_249151_, ResourceLocation p_252090_, RecipeSerializer<? extends AbstractCookingRecipe> p_249537_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126297_) - Specified by:
serializeRecipeData
in interfaceFinishedRecipe
-
getType
- Specified by:
getType
in interfaceFinishedRecipe
-
getId
- Specified by:
getId
in interfaceFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceFinishedRecipe
-