MCPotionEffectInstance

Link to mcpotioneffectinstance

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;

已实现的接口

Link to 已实现的接口

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
参数类型描述
参数
堆叠
类型
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
参数类型描述
参数
堆叠
类型
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
名称类型可获得可设置描述
名称
ambient
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
amplifier
类型
int
可获得
true
可设置
false
描述
No Description Provided
名称
duration
类型
int
可获得
true
可设置
false
描述
No Description Provided
名称
effectName
类型
string
可获得
true
可设置
false
描述
No Description Provided
名称
potion
类型
MCPotionEffect
可获得
true
可设置
false
描述
No Description Provided
名称
showIcon
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
showParticles
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided