classpublicPriority 3
MotionControllerDive
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerDive
extends MotionControllerBase
28
Methods
28
Public Methods
22
Fields
1
Constructors
Constants
intCOLLISION_MATERIALS_ACTIVE= 5
intCOLLISION_MATERIALS_PASSIVE= 4
doubleDEFAULT_SWIM_DEPTH= 0.5
StringTYPE= "Dive"
EnumSet<MotionKind>VALID_MOTIONS= EnumSet.of(MotionKind.SWIMMING, MotionKind.SWIMMING_TURNING, MotionKind.MOVING)
Constructors
public
MotionControllerDive(BuilderSupport builderSupport, BuilderMotionControllerDive builder)Methods
Public Methods (28)
public
void activate()@Override
public
boolean canAct(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)@Override
public
boolean canRestAtPlace()@Override
public
void constrainRotations(Role role, TransformComponent transform)@Override
public
boolean estimateVelocity(Steering steering, Vector3d velocityOut)@Override
public
double getCurrentMaxBodyRotationSpeed()@Override
public
double getCurrentSpeed()@Override
public
double getCurrentTurnRadius()@Override
public
double getDampingDeceleration()public
double getDesiredAltitudeWeight()@Override
public
MotionController.VerticalRange getDesiredVerticalRange(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)@Nonnull@Override
public
double getHeightOverGround()@Override
public
float getMaxClimbAngle()@Override
public
float getMaxSinkAngle()@Override
public
double getMaximumSpeed()@Override
public
String getType()@Nonnull@Override
public
double getWanderVerticalMovementRatio()@Override
public
boolean inAir()@Override
public
boolean inWater()@Override
public
boolean is2D()@Override
public
boolean isFastMotionKind(double speed)@Override
public
boolean onGround()@Override
public
double probeMove(Ref<EntityStore> ref, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor)@Override
publicstatic
double relativeSwimDepthToBoundingBox(double swimDepth, Box boundingBox, float eyeHeight)publicstatic
double relativeSwimDepthToHeight(double swimDepth, Box boundingBox, float eyeHeight)public
void setMotionKind(MotionKind motionKind)@Override
public
void spawned()@Override
public
void updateModelParameters(Ref<EntityStore> ref, Model model, Box boundingBox, ComponentAccessor<EntityStore> componentAccessor)@Override
Fields
Protected Fields (22)
protected
double DAMPING_FACTORprotected
double accelerationprotected
double climbSpeedprotected
boolean collisionWithSolidprotected
double currentRelativeSpeedprotected
double desiredDepthWeightprotected
double fastDiveThresholdprotected
double maxDiveDepthprotected
double maxFallSpeedprotected
float maxMoveTurnAngleprotected
double maxRotationSpeedprotected
double maxSinkSpeedprotected
double maxVerticalSpeedprotected
double maxWaterDepthprotected
double minDepthAboveGroundprotected
double minDepthBelowSurfaceprotected
double minDiveDepthprotected
double minSpeedAfterForceSquaredprotected
double minWaterDepthprotected
double relativeSwimDepthprotected
double sinkRatioprotected
double swimDepth