Nameable

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.world.Nameable;

Members

Getter
script.zs
// Nameable.customName as Component
myNameable.customName

Return Type: Component

customName() as Component
script.zs
// Nameable.customName() as Component;
myNameable.customName();

Return Type: Component

Getter
script.zs
// Nameable.displayName as Component
myNameable.displayName

Return Type: Component

displayName() as Component
script.zs
// Nameable.displayName() as Component;
myNameable.displayName();

Return Type: Component

Getter
script.zs
// Nameable.hasCustomName as bool
myNameable.hasCustomName

Return Type: bool

hasCustomName() as bool
script.zs
// Nameable.hasCustomName() as bool;
myNameable.hasCustomName();

Return Type: bool

Getter
script.zs
// Nameable.name as Component
myNameable.name

Return Type: Component

name() as Component
script.zs
// Nameable.name() as Component;
myNameable.name();

Return Type: Component