HyCodeYourTale
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)

protecteddouble acceleration
protectedMotionControllerWalk.AscentAnimationType ascentAnimationType
protectedBlockType belowBlockType
protectedint belowBlockTypeId
protecteddouble blendRestRelativeSpeed
protectedfloat blendRestTurnAngle
protecteddouble breathingDepth
protecteddouble climbSpeed
protecteddouble climbSpeedConst
protecteddouble climbSpeedMult
protecteddouble climbSpeedPow
protecteddouble climbUpDistance
protecteddouble constraintDepth
protecteddouble currentClimbForwardDistance
protecteddouble currentJumpHeight
protecteddouble currentRelativeSpeed
protecteddouble descendFlatness
protecteddouble descendSpeedCompensation
protectedMotionControllerWalk.DescentAnimationType descentAnimationType
protecteddouble descentBlending
protecteddouble descentSteepness
protecteddouble fallSpeed
protecteddouble fallStartHeight
protectedint fenceBlockSet
protectedboolean floatsDown
protectedint[] footingBlocks
protectedboolean footingBlocksValid
protectedshort[] footingFillers
protectedbyte[] footingRotations
protecteddouble horizontalSpeedMultiplier
protectedfloat hoverCycle
protecteddouble hoverFreq
protectedboolean inWater
protectedboolean isFullyRotated
protecteddouble jumpBlending
protecteddouble jumpBlockHeight
protecteddouble jumpDescentBlending
protecteddouble jumpDescentSteepness
protecteddouble jumpDropHeight
protecteddouble jumpForce
protecteddouble jumpHeight
protectedboolean jumping
protecteddouble maxClimbForwardDistance
protecteddouble maxClimbHeight
protecteddouble maxDropHeight
protecteddouble maxHover
protectedfloat maxMoveTurnAngle
protecteddouble maxRotationSpeed
protecteddouble maxVerticalSpeed
protecteddouble maxVerticalSpeedFluid
protecteddouble maxWalkSpeedAfterHitMultiplier
protecteddouble minDescentAnimationHeight
protecteddouble minHorizontalSpeed
protecteddouble minHover
protecteddouble minHoverClimb
protecteddouble minHoverDrop
protecteddouble minJumpDistance
protecteddouble minJumpHeight
protectedboolean onGround
protecteddouble predictedFallHeight
protecteddouble totalDropDistance

Related Classes