Class BrewingBuilder

java.lang.Object
net.ixdarklord.coolcatcore.api.brewing.BrewingBuilder

public final class BrewingBuilder extends Object
Brewing recipes made in code, alongside the game's own (data pack recipes since 26.3). Mixes and container recipes work as vanilla's did: a potion in any container brews into another potion in the same container, and a container brews into another holding the same potion.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addContainer(net.minecraft.world.item.Item container)
    An item potions can be brewed in by the mixes added here (potions, splash and lingering potions already are).
    void
    addContainerRecipe(net.minecraft.world.item.Item input, net.minecraft.world.item.Item reagent, net.minecraft.world.item.Item result)
    A potion in input brewed with reagent becomes the same potion in result.
    void
    addMix(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> input, net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result)
    input brewed with reagent becomes result, in whichever container it is in.
    void
     
    void
    addRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output)
     
    void
    addStartMix(net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result)
    An awkward potion brewed with reagent becomes result, as vanilla's own start mixes do.
     

    Methods inherited from class Object

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

    • BrewingBuilder

      public BrewingBuilder()
  • Method Details

    • addRecipe

      public void addRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output)
    • addRecipe

      public void addRecipe(IBrewingRecipe recipe)
    • addContainer

      public void addContainer(net.minecraft.world.item.Item container)
      An item potions can be brewed in by the mixes added here (potions, splash and lingering potions already are).
    • addContainerRecipe

      public void addContainerRecipe(net.minecraft.world.item.Item input, net.minecraft.world.item.Item reagent, net.minecraft.world.item.Item result)
      A potion in input brewed with reagent becomes the same potion in result.
    • addMix

      public void addMix(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> input, net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result)
      input brewed with reagent becomes result, in whichever container it is in.
    • addStartMix

      public void addStartMix(net.minecraft.world.item.Item reagent, net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> result)
      An awkward potion brewed with reagent becomes result, as vanilla's own start mixes do.
    • getBrewingRecipes

      public List<IBrewingRecipe> getBrewingRecipes()