Nameable
Importing the class
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.
import crafttweaker.api.world.Nameable;
Methods
Return Type: Component
// Nameable.getCustomName() as Component
myNameable.getCustomName();
Return Type: Component
// Nameable.getDisplayName() as Component
myNameable.getDisplayName();
Return Type: Component
// Nameable.getName() as Component
myNameable.getName();
Return Type: boolean
// Nameable.hasCustomName() as boolean
myNameable.hasCustomName();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name customName | Type Component | Has Getter true | Has Setter false | Description No Description Provided |
Name displayName | Type Component | Has Getter true | Has Setter false | Description No Description Provided |
Name hasCustomName | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name name | Type Component | Has Getter true | Has Setter false | Description No Description Provided |