ToolType

This is the vanilla ToolType.

导入相关包

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.tool.ToolType;

Casters

结果类型是否隐藏
stringfalse

方法

getName

Gets the name of this ToolType.

Return Type: string

ZenScript
Copy
// ToolType.getName() as string

myToolType.getName();

参数

名称类型可获得可设置描述
commandStringstringtruefalseNo Description Provided
namestringtruefalseGets the name of this ToolType.