Package com.mrbysco.spoiled.datagen
Class SpoilRecipeBuilder.Result
java.lang.Object
com.mrbysco.spoiled.datagen.SpoilRecipeBuilder.Result
- All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
- Enclosing class:
- SpoilRecipeBuilder
public static class SpoilRecipeBuilder.Result
extends Object
implements net.minecraft.data.recipes.FinishedRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionResult(net.minecraft.resources.ResourceLocation idIn, String groupIn, net.minecraft.world.item.crafting.Ingredient ingredientIn, net.minecraft.world.item.Item result, int spoilTime, net.minecraft.world.item.crafting.RecipeSerializer<SpoilRecipe> serializerIn) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.advancements.AdvancementHolderGets the JSON for the advancement that unlocks this recipe.net.minecraft.resources.ResourceLocationid()Gets the ID for the recipe.voidserializeRecipeData(com.google.gson.JsonObject json) net.minecraft.world.item.crafting.RecipeSerializer<?>type()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
-
Constructor Details
-
Result
public Result(net.minecraft.resources.ResourceLocation idIn, String groupIn, net.minecraft.world.item.crafting.Ingredient ingredientIn, net.minecraft.world.item.Item result, int spoilTime, net.minecraft.world.item.crafting.RecipeSerializer<SpoilRecipe> serializerIn)
-
-
Method Details
-
serializeRecipeData
public void serializeRecipeData(com.google.gson.JsonObject json) - Specified by:
serializeRecipeDatain interfacenet.minecraft.data.recipes.FinishedRecipe
-
type
public net.minecraft.world.item.crafting.RecipeSerializer<?> type()- Specified by:
typein interfacenet.minecraft.data.recipes.FinishedRecipe
-
id
public net.minecraft.resources.ResourceLocation id()Gets the ID for the recipe.- Specified by:
idin interfacenet.minecraft.data.recipes.FinishedRecipe
-
advancement
@Nullable public @Nullable net.minecraft.advancements.AdvancementHolder advancement()Gets the JSON for the advancement that unlocks this recipe. Null if there is no advancement.- Specified by:
advancementin interfacenet.minecraft.data.recipes.FinishedRecipe
-