Brew
Link to brew
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 Copyimport mods.botania.Brew;
Methods
Link to methods
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();
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>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to get the color of. |
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>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to get the mana cost of. |
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>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description An ItemStack to provide extra context. |
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();
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>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type ItemStack | Description The stack to provide extra context with. |
Properties
Link to properties
名称 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
名称 canInfuseBloodPendant | Type boolean型 | Has Getter true | Has Setter false | Description Checks whether this brew can be infused with a Blood Pendant. |
名称 canInfuseIncense | Type boolean型 | Has Getter true | Has Setter false | Description Checks whether this brew can be infused with incense. |
名称 manaCost | Type int | Has Getter true | Has Setter false | Description Gets the mana cost of the brew. |
名称 translationKey | Type string | Has Getter true | Has Setter false | Description Gets the translation key of the brew. |