MCPotionEffect
Link to mcpotioneffect
Diese Klasse importieren
Link to diese-klasse-importieren
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;
Methoden
Link to methoden
Name: isReady
Return Type: boolean
ZenScript CopyMCPotionEffect.isReady(duration as int, amplifier as int) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter duration | Type int | Beschreibung No Description Provided |
Parameter amplifier | Type int | Beschreibung 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 | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter duration | Type int | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter amplifier | Type int | Beschreibung No Description Provided | Optional true | DefaultValue 0 |
Parameter ambient | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue false |
Parameter showParticles | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name curativeItems | Type stdlib.List<IItemStack> | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name displayName | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name isBeneficial | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name isInstant | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name liquidColor | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name name | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |