Contents
Class ModelComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.ModelComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component which contains data on the
Model to be rendered.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic ComponentType<EntityStore, ModelComponent> static floatgetEyeHeight(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) The eye height of the entity's model for its current movement state, or0when the entity has no model.getModel()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
ModelComponent
-
-
Method Details
-
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, or0when the entity has no model.- Parameters:
ref- The entity reference of the target entity.componentAccessor- TheComponentAccessorfor component access.- Returns:
- the eye height, in blocks, above the entity's position.
-
getModel
-
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-