Package net.minecraft.data.recipes
Class SingleItemRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.SingleItemRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- SingleItemRecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Advancement.Builderprivate final ResourceLocationprivate final intprivate final Stringprivate final ResourceLocationprivate final Ingredientprivate final Itemprivate final RecipeSerializer<?> -
Constructor Summary
ConstructorsConstructorDescriptionResult(ResourceLocation p_126340_, RecipeSerializer<?> p_126341_, String p_126342_, Ingredient p_126343_, Item p_126344_, int p_126345_, Advancement.Builder p_126346_, ResourceLocation p_126347_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getType()com.google.gson.JsonObjectvoidserializeRecipeData(com.google.gson.JsonObject p_126349_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.FinishedRecipe
serializeRecipe
-
Field Details
-
id
-
group
-
ingredient
-
result
-
count
private final int count -
advancement
-
advancementId
-
type
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_126340_, RecipeSerializer<?> p_126341_, String p_126342_, Ingredient p_126343_, Item p_126344_, int p_126345_, Advancement.Builder p_126346_, ResourceLocation p_126347_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126349_) - Specified by:
serializeRecipeDatain interfaceFinishedRecipe
-
getId
- Specified by:
getIdin interfaceFinishedRecipe
-
getType
- Specified by:
getTypein interfaceFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancementin interfaceFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementIdin interfaceFinishedRecipe
-