Package vazkii.botania.api.brew
Class Brew
java.lang.Object
vazkii.botania.api.brew.Brew
The class for a Brew definition, each one is a singleton.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanintgetColor(net.minecraft.world.item.ItemStack stack) Gets the display color for the ItemStack passed in.intGets the insensitive unlocalized mana cost.intgetManaCost(net.minecraft.world.item.ItemStack stack) Gets the mana cost for the ItemStack passed in.List<net.minecraft.world.effect.MobEffectInstance> getPotionEffects(net.minecraft.world.item.ItemStack stack) Gets the list of vanilla PotionEffects for the ItemStack passed in.Gets the insensitive unlocalized name.getTranslationKey(net.minecraft.world.item.ItemStack stack) Gets the unlocalized name for the ItemStack passed in.Sets this brew to not be able to be infused onto the Tainted Blood Pendant.Sets this brew to not be able to be infused onto Incense Sticks.
-
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. SeePotionContents.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
- 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
Sets this brew to not be able to be infused onto the Tainted Blood Pendant. -
setNotIncenseInfusable
Sets this brew to not be able to be infused onto Incense Sticks. -
canInfuseBloodPendant
public boolean canInfuseBloodPendant() -
canInfuseIncense
public boolean canInfuseIncense() -
getTranslationKey
Gets the insensitive unlocalized name. This is used for the lexicon. -
getTranslationKey
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.
-