Brew
Link to brew
导入类
Link to 导入类
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;
使用方式
Link to 使用方式
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>);
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 物品应用 | 描述 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>);
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 物品应用 | 描述 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>);
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 物品应用 | 描述 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>);
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 物品应用 | 描述 The stack to provide extra context with. |
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 canInfuseBloodPendant | 类型 布尔值 | 可获得 true | 可设置 false | 描述 Checks whether this brew can be infused with a Blood Pendant. |
名称 canInfuseIncense | 类型 布尔值 | 可获得 true | 可设置 false | 描述 Checks whether this brew can be infused with incense. |
名称 manaCost | 类型 int | 可获得 true | 可设置 false | 描述 Gets the mana cost of the brew. |
名称 translationKey | 类型 string | 可获得 true | 可设置 false | 描述 Gets the translation key of the brew. |