MCPotionEffect

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.MCPotionEffect;

Methods

isReady

Return Type: boolean

ZenScript
Copy
MCPotionEffect.isReady(duration as int, amplifier as int) as boolean
ParameterTypeDescription
durationintNo Description Provided
amplifierintNo Description Provided
newInstance

Return Type: MCPotionEffectInstance

ZenScript
Copy
MCPotionEffect.newInstance(duration as int, amplifier as int) as MCPotionEffectInstance
ParameterTypeDescriptionOptionalDefaultValue
durationintNo Description Providedfalse
amplifierintNo Description Providedtrue0

Properties

NameTypeHas GetterHas SetterDescription
commandStringstringtruefalseNo Description Provided
curativeItemsstdlib.List<IItemStack>truefalseNo Description Provided
displayNamestringtruefalseNo Description Provided
isBeneficialbooleantruefalseNo Description Provided
isInstantbooleantruefalseNo Description Provided
liquidColorinttruefalseNo Description Provided
namestringtruefalseNo Description Provided