MCPotionEffectInstance

Link to mcpotioneffectinstance

Импорт класса

Link to импорт-класса

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.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

Name: addCurativeItem

Return Type: void

ZenScript
Copy
MCPotionEffectInstance.addCurativeItem(stack as IItemStack) as void
ПараметрТипОписание
Параметр
stack
Тип
IItemStack
Описание
No Description Provided

Name: combine

Return Type: boolean

ZenScript
Copy
MCPotionEffectInstance.combine(effect as MCPotionEffectInstance) as boolean
ПараметрТипОписание
Параметр
effect
Тип
MCPotionEffectInstance
Описание
No Description Provided

Link to getCurativeItems

Name: getCurativeItems

Return Type: stdlib.List<IItemStack>

ZenScript
Copy
// MCPotionEffectInstance.getCurativeItems() as stdlib.List<IItemStack>

myMCPotionEffectInstance.getCurativeItems();

Name: isCurativeItem

Return Type: boolean

ZenScript
Copy
MCPotionEffectInstance.isCurativeItem(stack as IItemStack) as boolean
ПараметрТипОписание
Параметр
stack
Тип
IItemStack
Описание
No Description Provided

Link to setCurativeItems

Name: setCurativeItems

Return Type: void

ZenScript
Copy
MCPotionEffectInstance.setCurativeItems(items as IItemStack[]) as void
ПараметрТипОписание
Параметр
items
Тип
IItemStack[]
Описание
No Description Provided

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
ambient
Тип
boolean
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
amplifier
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
duration
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
effectName
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
potion
Тип
MCPotionEffect
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
showIcon
Тип
boolean
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
showParticles
Тип
boolean
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided