public interface Nameable
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getCustomName()
Gets the custom name on a mob or block.
|
void |
setCustomName(@Nullable String name)
Sets a custom name on a mob or block.
|
@Nullable @Nullable String getCustomName()
This value has no effect on players, they will always use their real name.
void setCustomName(@Nullable @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.