Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.botania.Brew;

Link to canInfuseBloodPendant

Name: canInfuseBloodPendant

Checks whether this brew can be infused with a Blood Pendant.

Returns: True if it can be infused, false otherwise.
Return Type: boolean

ZenScript
Copy
// Brew.canInfuseBloodPendant() as boolean

myBrew.canInfuseBloodPendant();

Link to canInfuseIncense

Name: canInfuseIncense

Checks whether this brew can be infused with incense.

Returns: True if it can be infused, false otherwise.
Return Type: boolean

ZenScript
Copy
// Brew.canInfuseIncense() as boolean

myBrew.canInfuseIncense();

Name: getColor

Gets the color of the brew for the ItemStack passed in.

Returns: The color of the brew for the given stack.
Return Type: int

ZenScript
Copy
// Brew.getColor(stack as ItemStack) as int

myBrew.getColor(<item:minecraft:dirt>);
ParameterTypeDescription
Parameter
stack
Type
Stos przedmiotów
Description
The stack to get the color of.

Link to getCommandString

Name: getCommandString

Gets the command string of this brew.

Returns: The command string of this brew.
Return Type: string

ZenScript
Copy
// Brew.getCommandString() as string

myBrew.getCommandString();

Name: getManaCost

Gets the mana cost of the brew.

Returns: The mana cost of the brew.
Return Type: int

ZenScript
Copy
// Brew.getManaCost() as int

myBrew.getManaCost();

Name: getManaCost

Gets the mana cost of the brew for the ItemStack passed in.

Returns: The mana cost of the brew.
Return Type: int

ZenScript
Copy
// Brew.getManaCost(stack as ItemStack) as int

myBrew.getManaCost(<item:minecraft:dirt>);
ParameterTypeDescription
Parameter
stack
Type
Stos przedmiotów
Description
The stack to get the mana cost of.

Link to getPotionEffects

Name: getPotionEffects

Gets the MobEffectInstances that this brew applies when consumed.

Returns: The MobEffectInstances that this brew applies when consumed.
Return Type: stdlib.List<MobEffectInstance>

ZenScript
Copy
// Brew.getPotionEffects(stack as ItemStack) as stdlib.List<MobEffectInstance>

myBrew.getPotionEffects(<item:minecraft:dirt>);
ParameterTypeDescription
Parameter
stack
Type
Stos przedmiotów
Description
An ItemStack to provide extra context.

Link to getTranslationKey

Name: getTranslationKey

Gets the translation key of the brew.

Returns: The translation key of the brew.
Return Type: string

ZenScript
Copy
// Brew.getTranslationKey() as string

myBrew.getTranslationKey();

Link to getTranslationKey

Name: getTranslationKey

Gets the translation key of the brew with extra context provided by the stack.

Returns: The translation key of the brew.
Return Type: string

ZenScript
Copy
// Brew.getTranslationKey(stack as ItemStack) as string

myBrew.getTranslationKey(<item:minecraft:dirt>);
ParameterTypeDescription
Parameter
stack
Type
Stos przedmiotów
Description
The stack to provide extra context with.
NameTypeHas GetterHas SetterDescription
Name
canInfuseBloodPendant
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether this brew can be infused with a Blood Pendant.
Name
canInfuseIncense
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether this brew can be infused with incense.
Name
manaCost
Type
int
Has Getter
true
Has Setter
false
Description
Gets the mana cost of the brew.
Name
translationKey
Type
string
Has Getter
true
Has Setter
false
Description
Gets the translation key of the brew.