Class PersistentModel

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.PersistentModel
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class PersistentModel extends Object implements Component<EntityStore>
Contains persistent data for generating the ModelComponent for rendering purposes.
  • Field Details

  • Constructor Details

    • PersistentModel

      public PersistentModel(@Nonnull Model.ModelReference modelReference)
      Default Constructor for a PersistentModel instance.
      Parameters:
      modelReference - The reference to the model used for rendering.
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, PersistentModel> getComponentType()
      Returns:
      the component type for the PersistentModel component.
    • getModelReference

      @Nonnull public Model.ModelReference getModelReference()
      Returns:
      the reference to the model used for rendering.
    • setModelReference

      public void setModelReference(@Nonnull Model.ModelReference modelReference)
      Called to set the model reference used for rendering.
      Parameters:
      modelReference - The reference to the model used for rendering.
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.