ITooltipFunction

Link to itooltipfunction

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.item.tooltip.ITooltipFunction;

Name: apply

Return Type: void

ZenScript
Copy
ITooltipFunction.apply(stack as IItemStack, tooltip as stdlib.List<MCTextComponent>, isAdvanced as boolean) as void
参数类型描述
参数
堆叠
类型
IItemStack
描述
No Description Provided
参数
工具提示
类型
stdlib.List<MCTextComponent>
描述
No Description Provided
参数
isAdvanced
类型
布尔值
描述
No Description Provided