Class Brew

java.lang.Object
vazkii.botania.api.brew.Brew

public class Brew extends Object
The class for a Brew definition, each one is a singleton.
  • Constructor Details

    • Brew

      public Brew(int color, int cost, net.minecraft.world.effect.MobEffectInstance... effects)
      Parameters:
      color - The color for the potion to be rendered in the bottle, note that it will get changed a bit when it renders (for more or less brightness) to give a fancy effect. See PotionContents.getColor() for a method to calculate this automatically.
      cost - The cost, in Mana for this brew.
      effects - A list of effects to apply to the player when they drink it.
    • Brew

      public Brew(int cost, Supplier<List<net.minecraft.world.effect.MobEffectInstance>> effects)
      Parameters:
      cost - The cost, in Mana for this brew.
      effects - A supplier that supplies a list of effects to apply to the player when they drink it.
  • Method Details

    • setNotBloodPendantInfusable

      public Brew setNotBloodPendantInfusable()
      Sets this brew to not be able to be infused onto the Tainted Blood Pendant.
    • setNotIncenseInfusable

      public Brew setNotIncenseInfusable()
      Sets this brew to not be able to be infused onto Incense Sticks.
    • canInfuseBloodPendant

      public boolean canInfuseBloodPendant()
    • canInfuseIncense

      public boolean canInfuseIncense()
    • getTranslationKey

      public String getTranslationKey()
      Gets the insensitive unlocalized name. This is used for the lexicon.
    • getTranslationKey

      public String getTranslationKey(net.minecraft.world.item.ItemStack stack)
      Gets the unlocalized name for the ItemStack passed in.
    • getColor

      public int getColor(net.minecraft.world.item.ItemStack stack)
      Gets the display color for the ItemStack passed in. Note that for the lexicon, this passes in a botania Managlass Vial or an Alfglass Flask at all times.
    • getManaCost

      public int getManaCost()
      Gets the insensitive unlocalized mana cost. This is used for the lexicon.
    • getManaCost

      public int getManaCost(net.minecraft.world.item.ItemStack stack)
      Gets the mana cost for the ItemStack passed in.
    • getPotionEffects

      public List<net.minecraft.world.effect.MobEffectInstance> getPotionEffects(net.minecraft.world.item.ItemStack stack)
      Gets the list of vanilla PotionEffects for the ItemStack passed in. Note that for the lexicon, this passes in a botania Managlass Vial or an Alfglass Flask at all times.