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.
import crafttweaker . api.world . Nameable;
// Nameable.customName as Component
Return Type:
Component
// Nameable.customName() as Component;
Return Type:
Component
// Nameable.displayName as Component
Return Type:
Component
// Nameable.displayName() as Component;
myNameable . displayName();
Return Type:
Component
// Nameable.hasCustomName as bool
Return Type:
bool
// Nameable.hasCustomName() as bool;
myNameable . hasCustomName();
Return Type:
bool
// Nameable.name as Component
Return Type:
Component
// Nameable.name() as Component;
Return Type:
Component