Contents
Class PersistentModel
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.PersistentModel
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Contains persistent data for generating the
ModelComponent for rendering purposes.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PersistentModel> The codec used to parsePersistentModelinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPersistentModel(Model.ModelReference modelReference) Default Constructor for aPersistentModelinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, PersistentModel> voidsetModelReference(Model.ModelReference modelReference) Called to set the model reference used for rendering.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 parsePersistentModelinstances.
-
-
Constructor Details
-
PersistentModel
Default Constructor for aPersistentModelinstance.- Parameters:
modelReference- The reference to the model used for rendering.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
PersistentModelcomponent.
-
getModelReference
- Returns:
- the reference to the model used for rendering.
-
setModelReference
Called to set the model reference used for rendering.- Parameters:
modelReference- The reference to the model used for rendering.
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-