MCPotionEffectInstance
Link to mcpotioneffectinstance
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.MCPotionEffectInstance;
Implemented Interfaces
Link to implemented-interfaces
MCPotionEffectInstance implements the following interfaces. That means all methods defined in these interfaces are also available in MCPotionEffectInstance
- Comparable<MCPotionEffectInstance>
Methoden
Link to methoden
Name: addCurativeItem
Return Type: void
ZenScript CopyMCPotionEffectInstance.addCurativeItem(stack as IItemStack) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter stack | Type IItemStack | Beschreibung No Description Provided |
Name: combine
Return Type: boolean
ZenScript CopyMCPotionEffectInstance.combine(effect as MCPotionEffectInstance) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter effect | Type MCPotionEffectInstance | Beschreibung No Description Provided |
Name: getCurativeItems
Return Type: stdlib.List<IItemStack>
ZenScript Copy// MCPotionEffectInstance.getCurativeItems() as stdlib.List<IItemStack>
myMCPotionEffectInstance.getCurativeItems();
Name: isCurativeItem
Return Type: boolean
ZenScript CopyMCPotionEffectInstance.isCurativeItem(stack as IItemStack) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter stack | Type IItemStack | Beschreibung No Description Provided |
Name: setCurativeItems
Return Type: void
ZenScript CopyMCPotionEffectInstance.setCurativeItems(items as IItemStack[]) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter items | Type IItemStack[] | Beschreibung No Description Provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name ambient | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name amplifier | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name duration | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name effectName | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name potion | Type MCPotionEffect | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name showIcon | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name showParticles | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |