Nameable
Link to nameable
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.world.Nameable;
Metodi
Link to metodi
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome customName | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome displayName | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome hasCustomName | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome nome | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |