Class PotionBrewing.Builder

java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing.Builder
Enclosing class:
PotionBrewing

public static class PotionBrewing.Builder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • expectPotion

      private static void expectPotion(Item pItem)
    • addContainerRecipe

      public void addContainerRecipe(Item pInput, Item pReagent, Item pResult)
    • addContainer

      public void addContainer(Item pContainer)
    • addMix

      public void addMix(Holder<Potion> pInput, Item pReagent, Holder<Potion> pResult)
    • addStartMix

      public void addStartMix(Item pReagent, Holder<Potion> pResult)
    • addRecipe

      public void addRecipe(Ingredient input, Ingredient ingredient, ItemStack output)
      Adds a new simple brewing recipe.
      Parameters:
      input - the ingredient that goes in the same slot as water bottles would
      ingredient - the ingredient that goes in the same slot as nether wart would
      output - the item stack that will replace the input once brewing is done
    • addRecipe

      public void addRecipe(IBrewingRecipe recipe)
      Adds a new brewing recipe with custom logic.
    • build

      public PotionBrewing build()