Package net.minecraft.data.recipes
Class ShapelessRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.CraftingRecipeBuilder.CraftingResult
net.minecraft.data.recipes.ShapelessRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- ShapelessRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final ResourceLocation
private final int
private final String
private final ResourceLocation
private final List<Ingredient>
private final Item
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_249007_, Item p_248667_, int p_249014_, String p_248592_, CraftingBookCategory p_249485_, List<Ingredient> p_252312_, Advancement.Builder p_249909_, ResourceLocation p_249109_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_126230_) 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
-
result
-
count
private final int count -
group
-
ingredients
-
advancement
-
advancementId
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_249007_, Item p_248667_, int p_249014_, String p_248592_, CraftingBookCategory p_249485_, List<Ingredient> p_252312_, Advancement.Builder p_249909_, ResourceLocation p_249109_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126230_) - Specified by:
serializeRecipeData
in interfaceFinishedRecipe
- Overrides:
serializeRecipeData
in classCraftingRecipeBuilder.CraftingResult
-
getType
-
getId
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement() -
getAdvancementId
-