MCPotionEffectInstance
This class was added by a mod with mod-id crafttweaker
. So you need to have this mod installed if you want to use this feature.
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.
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
MCPotionEffectInstance.addCurativeItem(stack as IItemStack) as void
Parameter | Type | Description |
---|
stack | IItemStack | No Description Provided |
combine
Return Type: boolean
MCPotionEffectInstance.combine(effect as MCPotionEffectInstance) as boolean
getCurativeItems
Return Type: stdlib.List<IItemStack>
MCPotionEffectInstance.getCurativeItems() as stdlib.List<IItemStack>
myMCPotionEffectInstance.getCurativeItems();
isCurativeItem
Return Type: boolean
MCPotionEffectInstance.isCurativeItem(stack as IItemStack) as boolean
Parameter | Type | Description |
---|
stack | IItemStack | No Description Provided |
setCurativeItems
Return Type: void
MCPotionEffectInstance.setCurativeItems(items as IItemStack[]) as void
Parameter | Type | Description |
---|
items | IItemStack[] | No Description Provided |
Properties
Name | Type | Has Getter | Has Setter |
---|
ambient | boolean | true | false |
amplifier | int | true | false |
duration | int | true | false |
effectName | string | true | false |
potion | MCPotionEffect | true | false |
showIcon | boolean | true | false |
showParticles | boolean | true | false |