2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1275 net/minecraft/util/Nameable
|
2022-09-21 13:30:05 -04:00
|
|
|
COMMENT Represents something that can be named, such as block entities or entities.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_16914 hasCustomName ()Z
|
2022-09-21 13:30:05 -04:00
|
|
|
COMMENT {@return whether this object has a custom name}
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_5476 getDisplayName ()Lnet/minecraft/class_2561;
|
2022-09-21 13:30:05 -04:00
|
|
|
COMMENT {@return the display name of this object}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>By default, this returns the result of {@link #getName}. The return value can
|
|
|
|
COMMENT have styling applied.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_5477 getName ()Lnet/minecraft/class_2561;
|
2022-09-21 13:30:05 -04:00
|
|
|
COMMENT {@return the name of this object}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This should return {@linkplain #getCustomName the custom name} if it exists,
|
|
|
|
COMMENT otherwise the default name. This should not have styling applied.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_5797 getCustomName ()Lnet/minecraft/class_2561;
|
2022-09-21 13:30:05 -04:00
|
|
|
COMMENT {@return the custom name of this object, or {@code null} if there is none}
|