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)
protected
boolean approachingprotected
DoubleParameterProvider cachedMaxRangeProviderprotected
DoubleParameterProvider cachedMinRangeProviderprotected
DoubleParameterProvider cachedPositioningAngleProviderprotected
double[] desiredDistanceRangeprotected
double[] initialDesiredDistanceRangeprotected
boolean initialisedprotected
int maxRangeProviderSlotprotected
int minRangeProviderSlotprotected
double moveThresholdprotected
double moveTowardsSlowdownThresholdprotected
boolean movingAwayprotected
boolean pauseStrafingprotected
int positioningAngleProviderSlotprotected
double relativeBackwardsSpeedprotected
double relativeForwardsSpeedprotected
double strafingDelayprotected
int strafingDirectionprotected
double[] strafingDurationRangeprotected
double[] strafingFrequencyRangeprotected
double targetDistanceFactorprotected
double targetDistanceSquaredprotected
double[] thresholdDistanceRangeSquared