Package net.minecraft.data.recipes
Class UpgradeRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.UpgradeRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- UpgradeRecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Ingredientprivate Advancement.Builderprivate ResourceLocationprivate Ingredientprivate ResourceLocationprivate Itemprivate RecipeSerializer<?> -
Constructor Summary
ConstructorsConstructorDescriptionResult(ResourceLocation p_126408_, RecipeSerializer<?> p_126409_, Ingredient p_126410_, Ingredient p_126411_, Item p_126412_, Advancement.Builder p_126413_, ResourceLocation p_126414_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getType()com.google.gson.JsonObjectvoidserializeRecipeData(com.google.gson.JsonObject p_126416_)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
-
base
-
addition
-
result
-
advancement
-
advancementId
-
type
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_126408_, RecipeSerializer<?> p_126409_, Ingredient p_126410_, Ingredient p_126411_, Item p_126412_, Advancement.Builder p_126413_, ResourceLocation p_126414_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_126416_)- 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
-