Class SmallPartsRecipeBuilder.Result

java.lang.Object
tech.anonymoushacker1279.immersiveweapons.data.recipes.SmallPartsRecipeBuilder.Result
All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
Enclosing class:
SmallPartsRecipeBuilder

public static class SmallPartsRecipeBuilder.Result extends Object implements net.minecraft.data.recipes.FinishedRecipe
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.RecipeSerializer<?> type, net.minecraft.world.item.crafting.Ingredient material, List<net.minecraft.world.item.Item> craftables, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
     
  • Method Summary

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

    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 id, net.minecraft.world.item.crafting.RecipeSerializer<?> type, net.minecraft.world.item.crafting.Ingredient material, List<net.minecraft.world.item.Item> craftables, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
  • Method Details

    • serializeRecipeData

      public void serializeRecipeData(com.google.gson.JsonObject json)
      Specified by:
      serializeRecipeData in interface net.minecraft.data.recipes.FinishedRecipe
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Gets the ID for the recipe.
      Specified by:
      getId in interface net.minecraft.data.recipes.FinishedRecipe
    • getType

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

      @Nullable public @Nullable com.google.gson.JsonObject serializeAdvancement()
      Gets the JSON for the advancement that unlocks this recipe. Null if there is no advancement.
      Specified by:
      serializeAdvancement in interface net.minecraft.data.recipes.FinishedRecipe
    • getAdvancementId

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancementId()
      Gets the ID for the advancement associated with this recipe.
      Specified by:
      getAdvancementId in interface net.minecraft.data.recipes.FinishedRecipe