Class HeadMotionWatch
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.HeadMotionBase
com.hypixel.hytale.server.npc.corecomponents.entity.HeadMotionWatch
- All Implemented Interfaces:
HeadMotion,Motion,RoleStateChange,IAnnotatedComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ComponentType<EntityStore, ModelComponent> protected final doubleprotected static final ComponentType<EntityStore, TransformComponent> Fields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
ConstructorsConstructorDescriptionHeadMotionWatch(BuilderHeadMotionWatch builderHeadMotionWatch, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionbooleancomputeSteering(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Steering desiredSteering, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Motion
activate, deactivate, preComputeSteeringMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
TRANSFORM_COMPONENT_TYPE
-
MODEL_COMPONENT_TYPE
-
relativeTurnSpeed
protected final double relativeTurnSpeed
-
-
Constructor Details
-
HeadMotionWatch
public HeadMotionWatch(@Nonnull BuilderHeadMotionWatch builderHeadMotionWatch, @Nonnull BuilderSupport support)
-
-
Method Details
-
computeSteering
public boolean computeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Steering desiredSteering, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-