MCPotionEffect
Link to mcpotioneffect
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 Copyimport crafttweaker.api.potion.MCPotionEffect;
Methods
Link to methods
Name: isReady
Return Type: boolean
ZenScript CopyMCPotionEffect.isReady(duration as int, amplifier as int) as boolean
Parameter | Type | Description |
---|---|---|
Parameter duration | Type int | Description No Description Provided |
Parameter amplifier | Type int | Description No Description Provided |
Name: newInstance
Return Type: MCPotionEffectInstance
ZenScript CopyMCPotionEffect.newInstance(duration as int, amplifier as int, ambient as boolean, showParticles as boolean) as MCPotionEffectInstance
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter duration | Type int | Description No Description Provided | Optional false | DefaultValue |
Parameter amplifier | Type int | Description No Description Provided | Optional true | DefaultValue 0 |
Parameter ambient | Type boolean型 | Description No Description Provided | Optional true | DefaultValue false |
Parameter showParticles | Type boolean型 | Description No Description Provided | Optional true | DefaultValue true |
Properties
Link to properties
名称 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
名称 commandString | Type string | Has Getter true | Has Setter false | Description No Description Provided |
名称 curativeItems | Type stdlib.List<IItemStack> | Has Getter true | Has Setter false | Description No Description Provided |
名称 displayName | Type string | Has Getter true | Has Setter false | Description No Description Provided |
名称 isBeneficial | Type boolean型 | Has Getter true | Has Setter false | Description No Description Provided |
名称 isInstant | Type boolean型 | Has Getter true | Has Setter false | Description No Description Provided |
名称 liquidColor | Type int | Has Getter true | Has Setter false | Description No Description Provided |
名称 name | Type string | Has Getter true | Has Setter false | Description No Description Provided |