Class ModelComponent

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

public class ModelComponent extends Object implements Component<EntityStore>
A component which contains data on the Model to be rendered.
  • Constructor Details

    • ModelComponent

      public ModelComponent(Model model)
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, ModelComponent> getComponentType()
    • getEyeHeight

      public static float getEyeHeight(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      The eye height of the entity's model for its current movement state, or 0 when the entity has no model.
      Parameters:
      ref - The entity reference of the target entity.
      componentAccessor - The ComponentAccessor for component access.
      Returns:
      the eye height, in blocks, above the entity's position.
    • getModel

      public Model getModel()
    • consumeNetworkOutdated

      public boolean consumeNetworkOutdated()
    • clone

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