abstract class MotionTimer
Class MotionTimer. Provides motiontimer functionality for the Hytale server.
java.lang.Object > MotionTimer
Field Summary
activeTime
protected
double
activeTime
Field activeTime.
timeToLive
protected
double
timeToLive
Field timeToLive.
timerRange
final
double[]
timerRange
Field timerRange.
Method Detail
MotionTimer
public
public
MotionTimer
(@Nonnull final BuilderMotionTimer builder, @Nonnull final BuilderSupport builderSupport, final T motion)
Method MotionTimer.
- Parameters:
@Nonnull final BuilderMotionTimerbuilder@Nonnull final BuilderSupportbuilderSupportfinal Tmotion
activate
public
void
activate
(@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)
Method activate.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nonnull final ComponentAccessorcomponentAccessor
deactivate
public
void
deactivate
(@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)
Method deactivate.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nonnull final ComponentAccessorcomponentAccessor
computeSteering
public
boolean
computeSteering
(@Nonnull final Ref ref, @Nonnull final Role support, @Nullable final InfoProvider sensorInfo, final double dt, @Nonnull final Steering desiredSteering, @Nonnull final ComponentAccessor componentAccessor)
Method computeSteering.
- Parameters:
@Nonnull final Refref@Nonnull final Rolesupport@Nullable final InfoProvidersensorInfofinal doubledt@Nonnull final SteeringdesiredSteering@Nonnull final ComponentAccessorcomponentAccessor
motionControllerChanged
public
void
motionControllerChanged
(@Nullable final Ref ref, @Nonnull final NPCEntity npcComponent, final MotionController motionController, @Nullable final ComponentAccessor componentAccessor)
Method motionControllerChanged.
- Parameters:
@Nullable final Refref@Nonnull final NPCEntitynpcComponentfinal MotionControllermotionController@Nullable final ComponentAccessorcomponentAccessor