Class FreezingRecipeBuilder.Result

java.lang.Object
net.minheur.mhm_bitsnbobs.recipe.datagen.FreezingRecipeBuilder.Result
All Implemented Interfaces:
net.minecraft.data.recipes.FinishedRecipe
Enclosing class:
FreezingRecipeBuilder

public static class FreezingRecipeBuilder.Result extends Object implements net.minecraft.data.recipes.FinishedRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.advancements.Advancement.Builder
     
    private final net.minecraft.resources.ResourceLocation
     
    private final int
     
    private final net.minecraft.resources.ResourceLocation
     
    private final net.minecraft.world.item.crafting.Ingredient
     
    private final net.minecraft.world.level.ItemLike
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.ItemLike result, int pCount, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.resources.ResourceLocation
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    @Nullable com.google.gson.JsonObject
     
    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
  • Field Details

    • id

      private final net.minecraft.resources.ResourceLocation id
    • ingredient

      private final net.minecraft.world.item.crafting.Ingredient ingredient
    • result

      private final net.minecraft.world.level.ItemLike result
    • count

      private final int count
    • advancement

      private final net.minecraft.advancements.Advancement.Builder advancement
    • advancementId

      private final net.minecraft.resources.ResourceLocation advancementId
  • Constructor Details

    • Result

      public Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.ItemLike result, int pCount, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
  • 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()
      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()
      Specified by:
      serializeAdvancement in interface net.minecraft.data.recipes.FinishedRecipe
    • getAdvancementId

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancementId()
      Specified by:
      getAdvancementId in interface net.minecraft.data.recipes.FinishedRecipe