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.world.Nameable;

Name: getCustomName

Return Type: Component

ZenScript
Copy
// Nameable.getCustomName() as Component

myNameable.getCustomName();

Name: getDisplayName

Return Type: Component

ZenScript
Copy
// Nameable.getDisplayName() as Component

myNameable.getDisplayName();

Name: getName

Return Type: Component

ZenScript
Copy
// Nameable.getName() as Component

myNameable.getName();

Name: hasCustomName

Return Type: boolean

ZenScript
Copy
// Nameable.hasCustomName() as boolean

myNameable.hasCustomName();
名称类型可获得可设置描述
名称
customName
类型
Component
可获得
true
可设置
false
描述
No Description Provided
名称
displayName
类型
Component
可获得
true
可设置
false
描述
No Description Provided
名称
hasCustomName
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
name(名称)
类型
Component
可获得
true
可设置
false
描述
No Description Provided