Contents
Class DisplayNameComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.DisplayNameComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that represents the display name of an entity.
Utilised for logs or kill-feed entries for different entity archetypes.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Constructor for aDisplayNameComponentinstance.DisplayNameComponent(Message displayName) Default Constructor for aDisplayNameComponentinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, DisplayNameComponent> Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
DisplayNameComponent
public DisplayNameComponent()Empty Constructor for aDisplayNameComponentinstance.Used by the codec to parse
DisplayNameComponentinstances. -
DisplayNameComponent
Default Constructor for aDisplayNameComponentinstance.- Parameters:
displayName- The display name to associate with this component.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
DisplayNameComponentcomponent.
-
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.
-