Class AtomicalStabilizationRecipeBuilder

java.lang.Object
net.minheur.mhm_bitsnbobs.recipe.datagen.AtomicalStabilizationRecipeBuilder

public class AtomicalStabilizationRecipeBuilder extends Object
Here is the builder to datagen atomical stabilizator recipes
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.advancements.Advancement.Builder
     
    private final int
     
    private final net.minecraft.world.level.ItemLike
     
    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
    AtomicalStabilizationRecipeBuilder(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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    ensureValid(net.minecraft.resources.ResourceLocation pId)
    Make sure your recipe is valid
    void
    save(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, String id)
    Saves your recipe.
    void
    save(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, net.minecraft.resources.ResourceLocation id)
    Saves your recipe.
    stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result)
     
    stabilization(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 pCount)
     
    unlocks(String pKey, net.minecraft.advancements.CriterionTriggerInstance pCriterion)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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
  • Constructor Details

    • AtomicalStabilizationRecipeBuilder

      public AtomicalStabilizationRecipeBuilder(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)
  • Method Details

    • stabilization

      public static AtomicalStabilizationRecipeBuilder stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result)
    • stabilization

      public static AtomicalStabilizationRecipeBuilder stabilization(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 pCount)
    • unlocks

      public AtomicalStabilizationRecipeBuilder unlocks(String pKey, net.minecraft.advancements.CriterionTriggerInstance pCriterion)
    • ensureValid

      private void ensureValid(net.minecraft.resources.ResourceLocation pId)
      Make sure your recipe is valid
      Parameters:
      pId - your recipe's id / name
    • save

      public void save(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, net.minecraft.resources.ResourceLocation id)
      Saves your recipe.
      Parameters:
      consumer - recipe consumer
      id - your recipe id / name. Take a ResourceLocation.
    • save

      public void save(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, String id)
      Saves your recipe.
      Parameters:
      consumer - recipe consumer
      id - your recipe id / name. Takes a String and will make a ResourceLocation taking in mhm_bitsnbobs and your id.