Importing the class

Link to 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;

Name: isReady

Return Type: boolean

ZenScript
Copy
MCPotionEffect.isReady(duration as int, amplifier as int) as boolean
ParameterTypeDescription
Parameter
duration
Type
int
Description
No Description Provided
Parameter
amplifier
Type
int
Description
No Description Provided

Name: newInstance

Return Type: MCPotionEffectInstance

ZenScript
Copy
MCPotionEffect.newInstance(duration as int, amplifier as int) as MCPotionEffectInstance
ParameterTypeDescriptionOptionalDefaultValue
Parameter
duration
Type
int
Description
No Description Provided
Optional
false
DefaultValue
‚Äč
Parameter
amplifier
Type
int
Description
No Description Provided
Optional
true
DefaultValue
0
NombreTypeHas GetterHas SetterDescription
Nombre
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
curativeItems
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
displayName
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isBeneficial
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInstant
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
liquidColor
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
name
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided