Contents
Class Nameplate
java.lang.Object
com.hypixel.hytale.server.core.entity.nameplate.Nameplate
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that represents the nameplate of an entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<Nameplate> The codec used to parse and serializeNameplateinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanCalled to consume and return whether the nameplate data is outdated and needs to be sent to clients.static ComponentType<EntityStore, Nameplate> getText()voidCalled to set the text displayed on the nameplate.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 serializeNameplateinstances.
-
-
Constructor Details
-
Nameplate
-
Nameplate
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
Nameplatecomponent.
-
getText
- Returns:
- whether the nameplate is visible.
-
setText
Called to set the text displayed on the nameplate.- Parameters:
text- The text to set.
-
consumeNetworkOutdated
public boolean consumeNetworkOutdated()Called to consume and return whether the nameplate data is outdated and needs to be sent to clients.- Returns:
trueif outdated,falseotherwise.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-