Class AtomicalStabilizationRecipeBuilder.Result

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

public static class AtomicalStabilizationRecipeBuilder.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.world.level.ItemLike
     
    private final net.minecraft.resources.ResourceLocation
     
    private final net.minecraft.world.level.ItemLike
     
    private final net.minecraft.world.level.ItemLike
     
    private final net.minecraft.world.level.ItemLike
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count, 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)
    serialize your recipe data

    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
    • leftIngredient

      private final net.minecraft.world.level.ItemLike leftIngredient
    • rightIngredient

      private final net.minecraft.world.level.ItemLike rightIngredient
    • glueIngredient

      private final net.minecraft.world.level.ItemLike glueIngredient
    • 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 leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
  • Method Details

    • serializeRecipeData

      public void serializeRecipeData(com.google.gson.JsonObject pJson)
      serialize your recipe data
      Specified by:
      serializeRecipeData in interface net.minecraft.data.recipes.FinishedRecipe
      Parameters:
      pJson - your finished recipe json
    • 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