Package net.minecraft.data
Class ShapelessRecipeBuilder.Result
java.lang.Object
net.minecraft.data.ShapelessRecipeBuilder.Result
- All Implemented Interfaces:
IFinishedRecipe
- 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_i48268_1_, Item p_i48268_2_, int p_i48268_3_, String p_i48268_4_, List<Ingredient> p_i48268_5_, Advancement.Builder p_i48268_6_, ResourceLocation p_i48268_7_) -
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
-
result
-
count
private final int count -
group
-
ingredients
-
advancement
-
advancementId
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_i48268_1_, Item p_i48268_2_, int p_i48268_3_, String p_i48268_4_, List<Ingredient> p_i48268_5_, Advancement.Builder p_i48268_6_, ResourceLocation p_i48268_7_)
-
-
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
-