Class TeslaSynthesizerRecipeBuilder.Result

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

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

    Constructors
    Constructor
    Description
    Result(net.minecraft.resources.ResourceLocation pId, net.minecraft.world.item.crafting.RecipeSerializer<?> pType, net.minecraft.world.item.crafting.Ingredient block, net.minecraft.world.item.crafting.Ingredient material1, net.minecraft.world.item.crafting.Ingredient material2, int cookTime, net.minecraft.world.item.Item result, net.minecraft.advancements.Advancement.Builder pAdvancement, net.minecraft.resources.ResourceLocation pAdvancementId)
     
  • 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 pJson)
     

    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 pId, net.minecraft.world.item.crafting.RecipeSerializer<?> pType, net.minecraft.world.item.crafting.Ingredient block, net.minecraft.world.item.crafting.Ingredient material1, net.minecraft.world.item.crafting.Ingredient material2, int cookTime, net.minecraft.world.item.Item result, net.minecraft.advancements.Advancement.Builder pAdvancement, net.minecraft.resources.ResourceLocation pAdvancementId)
  • Method Details

    • serializeRecipeData

      public void serializeRecipeData(com.google.gson.JsonObject pJson)
      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