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
ParameterTypeDescription
stackIItemStackNo Description Provided

combine

Return Type: boolean

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

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
ParameterTypeDescription
stackIItemStackNo Description Provided

setCurativeItems

Return Type: void

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

Properties

NameTypeHas GetterHas Setter
ambientbooleantruefalse
amplifierinttruefalse
durationinttruefalse
effectNamestringtruefalse
potionMCPotionEffecttruefalse
showIconbooleantruefalse
showParticlesbooleantruefalse