MCPotionEffectInstance

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 crafttweaker.api.potion.MCPotionEffectInstance;

Implemented Interfaces

MCPotionEffectInstance implements the following interfaces. That means all methods defined in these interfaces are also available in MCPotionEffectInstance

Methods

addCurativeItem

Return Type: void

ZenScript
Copy
MCPotionEffectInstance.addCurativeItem(stack as IItemStack) as void
ParameterTypeDescription
stackIItemStackNo Description Provided
combine

Return Type: boolean

ZenScript
Copy
MCPotionEffectInstance.combine(effect as MCPotionEffectInstance) as boolean
ParameterTypeDescription
effectMCPotionEffectInstanceNo Description Provided
getCurativeItems

Return Type: stdlib.List<IItemStack>

ZenScript
Copy
// MCPotionEffectInstance.getCurativeItems() as stdlib.List<IItemStack>

myMCPotionEffectInstance.getCurativeItems();
isCurativeItem

Return Type: boolean

ZenScript
Copy
MCPotionEffectInstance.isCurativeItem(stack as IItemStack) as boolean
ParameterTypeDescription
stackIItemStackNo Description Provided
setCurativeItems

Return Type: void

ZenScript
Copy
MCPotionEffectInstance.setCurativeItems(items as IItemStack[]) as void
ParameterTypeDescription
itemsIItemStack[]No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
ambientbooleantruefalseNo Description Provided
amplifierinttruefalseNo Description Provided
durationinttruefalseNo Description Provided
effectNamestringtruefalseNo Description Provided
potionMCPotionEffecttruefalseNo Description Provided
showIconbooleantruefalseNo Description Provided
showParticlesbooleantruefalseNo Description Provided