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.
|
@Nullable String getCustomName()
This value has no effect on players, they will always use their real name.
void setCustomName(@Nullable 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 © 2022. All rights reserved.