HyCodeYourTale
classpublicPriority 3

BodyMotionMaintainDistance

com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionMaintainDistance

extends BodyMotionBase

1

Methods

1

Public Methods

23

Fields

1

Constructors

Constants

floatPOSITIONING_ANGLE_THRESHOLD= 0.08726646F
ComponentType<EntityStore, TransformComponent>TRANSFORM_COMPONENT_TYPE= TransformComponent.getComponentType()

Constructors

public
BodyMotionMaintainDistance(BuilderBodyMotionMaintainDistance builder, BuilderSupport support)

Methods

Public Methods (1)

public
void deactivate(Ref<EntityStore> ref, Role role, ComponentAccessor<EntityStore> componentAccessor)
@Override

Fields

Protected Fields (23)

protectedboolean approaching
protectedDoubleParameterProvider cachedMaxRangeProvider
protectedDoubleParameterProvider cachedMinRangeProvider
protectedDoubleParameterProvider cachedPositioningAngleProvider
protecteddouble[] desiredDistanceRange
protecteddouble[] initialDesiredDistanceRange
protectedboolean initialised
protectedint maxRangeProviderSlot
protectedint minRangeProviderSlot
protecteddouble moveThreshold
protecteddouble moveTowardsSlowdownThreshold
protectedboolean movingAway
protectedboolean pauseStrafing
protectedint positioningAngleProviderSlot
protecteddouble relativeBackwardsSpeed
protecteddouble relativeForwardsSpeed
protecteddouble strafingDelay
protectedint strafingDirection
protecteddouble[] strafingDurationRange
protecteddouble[] strafingFrequencyRange
protecteddouble targetDistanceFactor
protecteddouble targetDistanceSquared
protecteddouble[] thresholdDistanceRangeSquared

Related Classes