Package net.minecraft.data.recipes
Class LegacyUpgradeRecipeBuilder.Result
java.lang.Object
net.minecraft.data.recipes.LegacyUpgradeRecipeBuilder.Result
- All Implemented Interfaces:
FinishedRecipe
- Enclosing class:
- LegacyUpgradeRecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
private final Advancement.Builder
private final ResourceLocation
private final Ingredient
private final ResourceLocation
private final Item
private final RecipeSerializer<?>
-
Constructor Summary
ConstructorDescriptionResult
(ResourceLocation p_267216_, RecipeSerializer<?> p_266997_, Ingredient p_266970_, Ingredient p_266975_, Item p_267271_, Advancement.Builder p_266866_, ResourceLocation p_266867_) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getType()
com.google.gson.JsonObject
void
serializeRecipeData
(com.google.gson.JsonObject p_267275_) 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
-
base
-
addition
-
result
-
advancement
-
advancementId
-
type
-
-
Constructor Details
-
Result
public Result(ResourceLocation p_267216_, RecipeSerializer<?> p_266997_, Ingredient p_266970_, Ingredient p_266975_, Item p_267271_, Advancement.Builder p_266866_, ResourceLocation p_266867_)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject p_267275_) - Specified by:
serializeRecipeData
in interfaceFinishedRecipe
-
getId
- Specified by:
getId
in interfaceFinishedRecipe
-
getType
- Specified by:
getType
in interfaceFinishedRecipe
-
serializeAdvancement
@Nullable public com.google.gson.JsonObject serializeAdvancement()- Specified by:
serializeAdvancement
in interfaceFinishedRecipe
-
getAdvancementId
- Specified by:
getAdvancementId
in interfaceFinishedRecipe
-