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.

import crafttweaker.api.potion.MCPotionEffect;

Methods

isReady

Return Type: boolean

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

Return Type: MCPotionEffectInstance

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

Properties

NameTypeHas GetterHas Setter
commandStringstringtruefalse
curativeItemsstdlib.List<IItemStack>truefalse
displayNamestringtruefalse
isBeneficialbooleantruefalse
isInstantbooleantruefalse
liquidColorinttruefalse
namestringtruefalse