Package net.minecraft.data
Class ShapelessRecipeBuilder.Result
- java.lang.Object
-
- net.minecraft.data.ShapelessRecipeBuilder.Result
-
- All Implemented Interfaces:
IFinishedRecipe
- Enclosing class:
- ShapelessRecipeBuilder
public static class ShapelessRecipeBuilder.Result extends java.lang.Object implements IFinishedRecipe
-
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builder
advancement
private ResourceLocation
advancementId
private int
count
private java.lang.String
group
private ResourceLocation
id
private java.util.List<Ingredient>
ingredients
private Item
result
-
Constructor Summary
Constructors Constructor Description Result(ResourceLocation p_i48268_1_, Item p_i48268_2_, int p_i48268_3_, java.lang.String p_i48268_4_, java.util.List<Ingredient> p_i48268_5_, Advancement.Builder p_i48268_6_, ResourceLocation p_i48268_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
-
result
private final Item result
-
count
private final int count
-
group
private final java.lang.String group
-
ingredients
private final java.util.List<Ingredient> ingredients
-
advancement
private final Advancement.Builder advancement
-
advancementId
private final ResourceLocation advancementId
-
-
Constructor Detail
-
Result
public Result(ResourceLocation p_i48268_1_, Item p_i48268_2_, int p_i48268_3_, java.lang.String p_i48268_4_, java.util.List<Ingredient> p_i48268_5_, Advancement.Builder p_i48268_6_, ResourceLocation p_i48268_7_)
-
-
Method Detail
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_218610_1_)
- Specified by:
serializeRecipeData
in interfaceIFinishedRecipe
-
getType
public IRecipeSerializer<?> getType()
- Specified by:
getType
in interfaceIFinishedRecipe
-
getId
public ResourceLocation getId()
- Specified by:
getId
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
-
-