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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.advancements.AdvancementHolder
    Gets the JSON for the advancement that unlocks this recipe.
    net.minecraft.resources.ResourceLocation
    id()
    Gets the ID for the recipe.
    void
    serializeRecipeData(com.google.gson.JsonObject json)
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     

    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
  • 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:
      serializeRecipeData in interface net.minecraft.data.recipes.FinishedRecipe
    • type

      public net.minecraft.world.item.crafting.RecipeSerializer<?> type()
      Specified by:
      type in interface net.minecraft.data.recipes.FinishedRecipe
    • id

      public net.minecraft.resources.ResourceLocation id()
      Gets the ID for the recipe.
      Specified by:
      id in interface net.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:
      advancement in interface net.minecraft.data.recipes.FinishedRecipe