Contents
Class PersistentDisplayName
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.PersistentDisplayName
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that persists the display name of an entity.
Seeded into DisplayNameComponent on entity load.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PersistentDisplayName> The codec used to parse and serializePersistentDisplayNameinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPersistentDisplayName(Message displayName) Default Constructor for aPersistentDisplayNameinstance. -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used to parse and serializePersistentDisplayNameinstances.
-
-
Constructor Details
-
PersistentDisplayName
Default Constructor for aPersistentDisplayNameinstance.- Parameters:
displayName- The display name to associate with this component.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
PersistentDisplayNamecomponent.
-
getDisplayName
- Returns:
- the display name of the entity, or
nullif no display name is set.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-