classpublicPriority 3
MotionControllerWalk
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerWalk
extends MotionControllerBase
30
Methods
30
Public Methods
61
Fields
1
Constructors
Constants
doubleCLIMB_FORWARD_DISTANCE= 0.1
doubleCLIMB_FORWARD_DISTANCE_SQUARED= 0.010000000000000002
intCOLLISION_MATERIALS= 4
doubleDROP_MIN_STOP_DIST= 0.001
doubleJUMP_FORWARD_DISTANCE= 0.5
doubleONE_PLUS_THRESHOLD= 1.00001
EnumSet<MotionKind>STATE_CAN_HOVER= EnumSet.of(MotionKind.MOVING, MotionKind.STANDING)
StringTYPE= "Walk"
EnumSet<MotionKind>VALID_MOTIONS= EnumSet.of(
MotionKind.ASCENDING, MotionKind.DESCENDING, MotionKind.DROPPING, MotionKind.ST...
intWALKING_MATERIALS= 5
intWALKING_MATERIALS_RELAXED= 13
Constructors
public
MotionControllerWalk(BuilderMotionControllerWalk builder, BuilderSupport builderSupport)Methods
Public Methods (30)
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
void forceVelocity(Vector3d velocity, VelocityConfig velocityConfig, boolean ignoreDamping)@Override
public
String get()public
double getCurrentMaxBodyRotationSpeed()@Override
public
double getCurrentSpeed()@Override
public
double getCurrentTurnRadius()@Override
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 isInProgress()@Override
public
boolean onGround()@Override
public
void postReadPosition(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)@Override
public
double probeMove(Ref<EntityStore> ref, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor)@Override
public
void setMotionKind(MotionKind motionKind)@Override
public
void spawned()@Override
public
boolean standingOnBlockOfType(int blockSet)@Override
public
boolean touchesWater(boolean defaultValue, ComponentAccessor<EntityStore> componentAccessor)@Override
public
void updateModelParameters(Ref<EntityStore> ref, Model model, Box boundingBox, ComponentAccessor<EntityStore> componentAccessor)@Override
Fields
Protected Fields (61)
protected
double accelerationprotected
MotionControllerWalk.AscentAnimationType ascentAnimationTypeprotected
BlockType belowBlockTypeprotected
int belowBlockTypeIdprotected
double blendRestRelativeSpeedprotected
float blendRestTurnAngleprotected
double breathingDepthprotected
double climbSpeedprotected
double climbSpeedConstprotected
double climbSpeedMultprotected
double climbSpeedPowprotected
double climbUpDistanceprotected
double constraintDepthprotected
double currentClimbForwardDistanceprotected
double currentJumpHeightprotected
double currentRelativeSpeedprotected
double descendFlatnessprotected
double descendSpeedCompensationprotected
MotionControllerWalk.DescentAnimationType descentAnimationTypeprotected
double descentBlendingprotected
double descentSteepnessprotected
double fallSpeedprotected
double fallStartHeightprotected
int fenceBlockSetprotected
boolean floatsDownprotected
int[] footingBlocksprotected
boolean footingBlocksValidprotected
short[] footingFillersprotected
byte[] footingRotationsprotected
double horizontalSpeedMultiplierprotected
float hoverCycleprotected
double hoverFreqprotected
boolean inWaterprotected
boolean isFullyRotatedprotected
double jumpBlendingprotected
double jumpBlockHeightprotected
double jumpDescentBlendingprotected
double jumpDescentSteepnessprotected
double jumpDropHeightprotected
double jumpForceprotected
double jumpHeightprotected
boolean jumpingprotected
double maxClimbForwardDistanceprotected
double maxClimbHeightprotected
double maxDropHeightprotected
double maxHoverprotected
float maxMoveTurnAngleprotected
double maxRotationSpeedprotected
double maxVerticalSpeedprotected
double maxVerticalSpeedFluidprotected
double maxWalkSpeedAfterHitMultiplierprotected
double minDescentAnimationHeightprotected
double minHorizontalSpeedprotected
double minHoverprotected
double minHoverClimbprotected
double minHoverDropprotected
double minJumpDistanceprotected
double minJumpHeightprotected
boolean onGroundprotected
double predictedFallHeightprotected
double totalDropDistance