public interface Nameable
Modifier and Type | Method and Description |
---|---|
String |
getCustomName()
Gets the custom name on a mob or block.
|
void |
setCustomName(String name)
Sets a custom name on a mob or block.
|
String getCustomName()
This value has no effect on players, they will always use their real name.
void setCustomName(String name)
Setting the name to null or an empty string will clear it.
This value has no effect on players, they will always use their real name.
name
- the name to setCopyright © 2016. All rights reserved.