MotionControllerWalk

public class MotionControllerWalk extends MotionControllerBase

Class MotionControllerWalk. Provides motioncontrollerwalk functionality for the Hytale server.

java.lang.Object > MotionControllerBase > MotionControllerWalk

Field Summary

onGround

protected boolean onGround

Field onGround.

inWater

protected boolean inWater

Field inWater.

horizontalSpeedMultiplier

protected double horizontalSpeedMultiplier

Field horizontalSpeedMultiplier.

fallStartHeight

protected double fallStartHeight

Field fallStartHeight.

fallSpeed

protected double fallSpeed

Field fallSpeed.

currentRelativeSpeed

protected double currentRelativeSpeed

Field currentRelativeSpeed.

isFullyRotated

protected boolean isFullyRotated

Field isFullyRotated.

belowBlockType

protected BlockType belowBlockType

Field belowBlockType.

belowBlockTypeId

protected int belowBlockTypeId

Field belowBlockTypeId.

footingBlocks

protected int[] footingBlocks

Field footingBlocks.

footingFillers

protected short[] footingFillers

Field footingFillers.

footingRotations

protected byte[] footingRotations

Field footingRotations.

footingBlocksValid

protected boolean footingBlocksValid

Field footingBlocksValid.

breathingDepth

protected double breathingDepth

Field breathingDepth.

constraintDepth

protected double constraintDepth

Field constraintDepth.

climbUpDistance

protected double climbUpDistance

Field climbUpDistance.

currentJumpHeight

protected double currentJumpHeight

Field currentJumpHeight.

jumpDropHeight

protected double jumpDropHeight

Field jumpDropHeight.

jumpBlockHeight

protected double jumpBlockHeight

Field jumpBlockHeight.

predictedFallHeight

protected double predictedFallHeight

Field predictedFallHeight.

currentClimbForwardDistance

protected double currentClimbForwardDistance

Field currentClimbForwardDistance.

maxClimbForwardDistance

protected double maxClimbForwardDistance

Field maxClimbForwardDistance.

totalDropDistance

protected double totalDropDistance

Field totalDropDistance.

climbSpeed

protected double climbSpeed

Field climbSpeed.

jumping

protected boolean jumping

Field jumping.

position

final Vector3d position

Field position.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

dropDist

final double dropDist

Field dropDist.

position2

final Vector3d position2

Field position2.

scale

final double scale

Field scale.

derivate

final double derivate

Field derivate.

position3

final Vector3d position3

Field position3.

isRunning

final boolean isRunning

Field isRunning.

motionKind

final MotionKind motionKind

Field motionKind.

eyeHeight

final float eyeHeight

Field eyeHeight.

max

final Vector3d max

Field max.

size

final int size

Field size.

rotation

final Vector3f rotation

Field rotation.

world

final World world

Field world.

wasOnGround

final boolean wasOnGround

Field wasOnGround.

bottomY

final double bottomY

Field bottomY.

xPos

final double xPos

Field xPos.

zPos

final double zPos

Field zPos.

minBlockX

final long minBlockX

Field minBlockX.

maxBlockX

final long maxBlockX

Field maxBlockX.

minBlockZ

final long minBlockZ

Field minBlockZ.

maxBlockZ

final long maxBlockZ

Field maxBlockZ.

minChunkX

final int minChunkX

Field minChunkX.

maxChunkX

final int maxChunkX

Field maxChunkX.

minChunkZ

final int minChunkZ

Field minChunkZ.

maxChunkZ

final int maxChunkZ

Field maxChunkZ.

chunk

final WorldChunk chunk

Field chunk.

minX

final int minX

Field minX.

maxX

final int maxX

Field maxX.

minZ

final int minZ

Field minZ.

maxZ

final int maxZ

Field maxZ.

chunkSection

final BlockSection chunkSection

Field chunkSection.

block

final int block

Field block.

boxBlockIntersectionEvaluator

final BoxBlockIntersectionEvaluator boxBlockIntersectionEvaluator

Field boxBlockIntersectionEvaluator.

chunkMinBlockX

final int chunkMinBlockX

Field chunkMinBlockX.

chunkMinBlockZ

final int chunkMinBlockZ

Field chunkMinBlockZ.

minX2

final int minX2

Field minX2.

maxX2

final int maxX2

Field maxX2.

minZ2

final int minZ2

Field minZ2.

maxZ2

final int maxZ2

Field maxZ2.

filler

final int filler

Field filler.

blockId

final int blockId

Field blockId.

blockType

final BlockType blockType

Field blockType.

material

final BlockMaterial material

Field material.

boundingBoxes

final BlockBoundingBoxes boundingBoxes

Field boundingBoxes.

rotatedBoxes

final BlockBoundingBoxes.RotatedVariantBoxes rotatedBoxes

Field rotatedBoxes.

x3

final int x3

Field x3.

y2

final int y2

Field y2.

z3

final int z3

Field z3.

chunkRef

final Ref chunkRef

Field chunkRef.

chunkStore

final Store chunkStore

Field chunkStore.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

fxIndex

final int fxIndex

Field fxIndex.

fx

final FluidFX fx

Field fx.

positionDataComponent

final PositionDataComponent positionDataComponent

Field positionDataComponent.

chunkStore2

final Store chunkStore2

Field chunkStore2.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

originalY

final double originalY

Field originalY.

retCode

final int retCode

Field retCode.

chunkIndex

final long chunkIndex

Field chunkIndex.

blockChunk

final BlockChunk blockChunk

Field blockChunk.

x

final int x

Field x.

z

final int z

Field z.

isFiller

final boolean isFiller

Field isFiller.

boxesAsset

final BlockBoundingBoxes boxesAsset

Field boxesAsset.

yBottom

final int yBottom

Field yBottom.

rotation2

final int rotation2

Field rotation2.

filler2

final int filler2

Field filler2.

blockId2

final int blockId2

Field blockId2.

blockType2

final BlockType blockType2

Field blockType2.

rotatedBoxes2

final BlockBoundingBoxes.RotatedVariantBoxes rotatedBoxes2

Field rotatedBoxes2.

top2

final double top2

Field top2.

direction

final Vector3d direction

Field direction.

maxVerticalSpeed

final double maxVerticalSpeed

Field maxVerticalSpeed.

maxHorizontalSpeed

final double maxHorizontalSpeed

Field maxHorizontalSpeed.

isDead

final boolean isDead

Field isDead.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

velocity

final Vector3d velocity

Field velocity.

entry

final AppliedVelocity entry

Field entry.

headingX

final float headingX

Field headingX.

headingZ

final float headingZ

Field headingZ.

length2

final double length2

Field length2.

speed

final double speed

Field speed.

maxDistance

final double maxDistance

Field maxDistance.

jumpDiff

final double jumpDiff

Field jumpDiff.

heightAboveBlock

final double heightAboveBlock

Field heightAboveBlock.

prevDistance

final double prevDistance

Field prevDistance.

remaining

final double remaining

Field remaining.

newRemaining

final double newRemaining

Field newRemaining.

maxForwardDistance

final double maxForwardDistance

Field maxForwardDistance.

scaledDiff

final double scaledDiff

Field scaledDiff.

canAct

final boolean canAct

Field canAct.

epsilon

final float epsilon

Field epsilon.

maxRotation

final float maxRotation

Field maxRotation.

turnAngle

final float turnAngle

Field turnAngle.

velocityComponent2

final Velocity velocityComponent2

Field velocityComponent2.

velocity2

final Vector3d velocity2

Field velocity2.

prevFallSpeed

final double prevFallSpeed

Field prevFallSpeed.

deltaFallSpeed

final double deltaFallSpeed

Field deltaFallSpeed.

maxSpeed

final double maxSpeed

Field maxSpeed.

maxDistance2

final double maxDistance2

Field maxDistance2.

lenSquared

final double lenSquared

Field lenSquared.

len

final double len

Field len.

hitbox

final Box hitbox

Field hitbox.

invertedGravityModifier

final int invertedGravityModifier

Field invertedGravityModifier.

terminalVelocity

final double terminalVelocity

Field terminalVelocity.

gravityStep

final double gravityStep

Field gravityStep.

avoidingBlockDamage

final boolean avoidingBlockDamage

Field avoidingBlockDamage.

relaxMoveConstraints

final boolean relaxMoveConstraints

Field relaxMoveConstraints.

oldState

final boolean oldState

Field oldState.

shortMove

final boolean shortMove

Field shortMove.

needsRotation

final boolean needsRotation

Field needsRotation.

remainingTranslation

final Vector3d remainingTranslation

Field remainingTranslation.

t

final double t

Field t.

fallHeight

final double fallHeight

Field fallHeight.

c

final BlockCollisionData c

Field c.

saveSegments

final boolean saveSegments

Field saveSegments.

probeMovement

final Vector3d probeMovement

Field probeMovement.

probePosition

final Vector3d probePosition

Field probePosition.

initialPosition

final Vector3d initialPosition

Field initialPosition.

targetPosition

final Vector3d targetPosition

Field targetPosition.

directionComponentSelector

final Vector3d directionComponentSelector

Field directionComponentSelector.

collisionModule

final CollisionModule collisionModule

Field collisionModule.

stopOnDamageBlocks

final boolean stopOnDamageBlocks

Field stopOnDamageBlocks.

relaxedMoveConstraints

final boolean relaxedMoveConstraints

Field relaxedMoveConstraints.

endSlide

final double endSlide

Field endSlide.

distance

final double distance

Field distance.

climbHeight

final double climbHeight

Field climbHeight.

distance2

final double distance2

Field distance2.

epsilonAngle

final double epsilonAngle

Field epsilonAngle.

descendToDrop

final boolean descendToDrop

Field descendToDrop.

moveLength

final double moveLength

Field moveLength.

reduction

final double reduction

Field reduction.

b

final boolean b

Field b.

maxRotationSpeed

final double maxRotationSpeed

Field maxRotationSpeed.

arrivalTime

final double arrivalTime

Field arrivalTime.

desiredHeading

final float desiredHeading

Field desiredHeading.

newDistance

final double newDistance

Field newDistance.

forwardScale

final double forwardScale

Field forwardScale.

newForwardDistance

final double newForwardDistance

Field newForwardDistance.

compensation

final double compensation

Field compensation.

canJump

final boolean canJump

Field canJump.

targetJumpHeight

final double targetJumpHeight

Field targetJumpHeight.

high

final double high

Field high.

baseClimbUpDistance

final double baseClimbUpDistance

Field baseClimbUpDistance.

forwardMax

final double forwardMax

Field forwardMax.

worldNormal

final Vector3d worldNormal

Field worldNormal.

saveComputeOverlaps

final boolean saveComputeOverlaps

Field saveComputeOverlaps.

worldAntiNormal

final Vector3d worldAntiNormal

Field worldAntiNormal.

bottom

final double bottom

Field bottom.

collisionStart

final double collisionStart

Field collisionStart.

collision

final BlockCollisionData collision

Field collision.

packed

final long packed

Field packed.

fluidId

final int fluidId

Field fluidId.

Method Detail

MotionControllerWalk

public public MotionControllerWalk (@Nonnull final BuilderMotionControllerWalk builder, @Nonnull final BuilderSupport builderSupport)

Method MotionControllerWalk.

Parameters:
@Nonnull final BuilderMotionControllerWalk builder
@Nonnull final BuilderSupport builderSupport

getType

public String getType ()

Method getType.

spawned

public void spawned ()

Method spawned.

getWanderVerticalMovementRatio

public double getWanderVerticalMovementRatio ()

Method getWanderVerticalMovementRatio.

getDesiredVerticalRange

public MotionController.VerticalRange getDesiredVerticalRange (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getDesiredVerticalRange.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

adjustReadPosition

protected void adjustReadPosition (final Ref ref, final ComponentAccessor componentAccessor)

Method adjustReadPosition.

Parameters:
final Ref ref
final ComponentAccessor componentAccessor

adjustWritePosition

protected void adjustWritePosition (final Ref ref, final double dt, @Nonnull final ComponentAccessor componentAccessor)

Method adjustWritePosition.

Parameters:
final Ref ref
final double dt
@Nonnull final ComponentAccessor componentAccessor

if

public else if (this.switchedToMotionKind(MotionKind.ASCENDING)

Method if.

Parameters:
this.switchedToMotionKind(MotionKind.ASCENDING this.switchedToMotionKind(MotionKind.ASCENDING

updateAscendingStates

protected void updateAscendingStates (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, final boolean fastMotionKind, final boolean horizontalIdleKind, @Nonnull final ComponentAccessor componentAccessor)

Method updateAscendingStates.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
final boolean fastMotionKind
final boolean horizontalIdleKind
@Nonnull final ComponentAccessor componentAccessor

updateDescendingStates

protected void updateDescendingStates (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, final boolean fastMotionKind, final boolean hovering, @Nonnull final ComponentAccessor componentAccessor)

Method updateDescendingStates.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
final boolean fastMotionKind
final boolean hovering
@Nonnull final ComponentAccessor componentAccessor

isFastMotionKind

public boolean isFastMotionKind (final double speed)

Method isFastMotionKind.

Parameters:
final double speed

isInProgress

public boolean isInProgress ()

Method isInProgress.

canAct

public boolean canAct (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method canAct.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

updateModelParameters

public void updateModelParameters (final Ref ref, final Model model, @Nonnull final Box boundingBox, final ComponentAccessor componentAccessor)

Method updateModelParameters.

Parameters:
final Ref ref
final Model model
@Nonnull final Box boundingBox
final ComponentAccessor componentAccessor

constrainRotations

public void constrainRotations (final Role role, @Nonnull final TransformComponent transform)

Method constrainRotations.

Parameters:
final Role role
@Nonnull final TransformComponent transform

forceVelocity

public void forceVelocity (@Nonnull final Vector3d velocity, final VelocityConfig velocityConfig, final boolean ignoreDamping)

Method forceVelocity.

Parameters:
@Nonnull final Vector3d velocity
final VelocityConfig velocityConfig
final boolean ignoreDamping

inAir

public boolean inAir ()

Method inAir.

onGround

public boolean onGround ()

Method onGround.

standingOnBlockOfType

public boolean standingOnBlockOfType (final int blockSet)

Method standingOnBlockOfType.

Parameters:
final int blockSet

inWater

public boolean inWater ()

Method inWater.

touchesWater

public boolean touchesWater (final boolean defaultValue, @Nonnull final ComponentAccessor componentAccessor)

Method touchesWater.

Parameters:
final boolean defaultValue
@Nonnull final ComponentAccessor componentAccessor

getCurrentSpeed

public double getCurrentSpeed ()

Method getCurrentSpeed.

getCurrentTurnRadius

public double getCurrentTurnRadius ()

Method getCurrentTurnRadius.

getMaxClimbAngle

public float getMaxClimbAngle ()

Method getMaxClimbAngle.

getMaxSinkAngle

public float getMaxSinkAngle ()

Method getMaxSinkAngle.

getMaximumSpeed

public double getMaximumSpeed ()

Method getMaximumSpeed.

is2D

public boolean is2D ()

Method is2D.

canRestAtPlace

public boolean canRestAtPlace ()

Method canRestAtPlace.

getDesiredAltitudeWeight

public double getDesiredAltitudeWeight ()

Method getDesiredAltitudeWeight.

getHeightOverGround

public double getHeightOverGround ()

Method getHeightOverGround.

estimateVelocity

public boolean estimateVelocity (@Nonnull final Steering steering, @Nonnull final Vector3d velocityOut)

Method estimateVelocity.

Parameters:
@Nonnull final Steering steering
@Nonnull final Vector3d velocityOut

setMotionKind

public void setMotionKind (MotionKind motionKind)

Method setMotionKind.

Parameters:
MotionKind motionKind

postReadPosition

public void postReadPosition (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method postReadPosition.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

translateToAccessiblePosition

public boolean translateToAccessiblePosition (@Nonnull final Vector3d position, @Nullable final Box boundingBox, double minYValue, double maxYValue, final ComponentAccessor componentAccessor)

Method translateToAccessiblePosition.

Parameters:
@Nonnull final Vector3d position
@Nullable final Box boundingBox
double minYValue
double maxYValue
final ComponentAccessor componentAccessor

computeMove

protected double computeMove (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final Steering steering, final double dt, @Nonnull final Vector3d translation, @Nonnull final ComponentAccessor componentAccessor)

Method computeMove.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final Steering steering
final double dt
@Nonnull final Vector3d translation
@Nonnull final ComponentAccessor componentAccessor

computeNewFallSpeed

private double computeNewFallSpeed (final double dt, double fallSpeed)

Method computeNewFallSpeed.

Parameters:
final double dt
double fallSpeed

executeMove

protected double executeMove (@Nonnull final Ref ref, @Nonnull final Role role, double dt, @Nonnull final Vector3d translation, @Nonnull final ComponentAccessor componentAccessor)

Method executeMove.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
double dt
@Nonnull final Vector3d translation
@Nonnull final ComponentAccessor componentAccessor

newpos

public s newpos (succ|fail)

Method newpos.

Parameters:
succ|fail succ|fail

probeMove

public double probeMove (@Nonnull final Ref ref, @Nonnull final ProbeMoveData probeMoveData, @Nonnull final ComponentAccessor componentAccessor)

Method probeMove.

Parameters:
@Nonnull final Ref ref
@Nonnull final ProbeMoveData probeMoveData
@Nonnull final ComponentAccessor componentAccessor

postExecuteMove

protected void postExecuteMove ()

Method postExecuteMove.

getCurrentMaxBodyRotationSpeed

public double getCurrentMaxBodyRotationSpeed ()

Method getCurrentMaxBodyRotationSpeed.

computeHeading

protected float computeHeading (final float desiredAngle, final double relativeTurnSpeed, float heading, final double dt, final boolean updateFullyRotated, final boolean stopIfTurnedTooFar)

Method computeHeading.

Parameters:
final float desiredAngle
final double relativeTurnSpeed
float heading
final double dt
final boolean updateFullyRotated
final boolean stopIfTurnedTooFar

initiateDescend

protected boolean initiateDescend (@Nonnull final Vector3d translation, final boolean wasOnGround, final String logName, @Nonnull final ComponentAccessor componentAccessor)

Method initiateDescend.

Parameters:
@Nonnull final Vector3d translation
final boolean wasOnGround
final String logName
@Nonnull final ComponentAccessor componentAccessor

updateMovementVector

protected double updateMovementVector (@Nonnull final Vector3d probePosition, @Nonnull final Vector3d probeMovement, @Nonnull final Vector3d targetPosition, @Nonnull final Vector3d directionComponentSelector)

Method updateMovementVector.

Parameters:
@Nonnull final Vector3d probePosition
@Nonnull final Vector3d probeMovement
@Nonnull final Vector3d targetPosition
@Nonnull final Vector3d directionComponentSelector

discardIgnorableSlideCollisions

private BlockCollisionData discardIgnorableSlideCollisions (@Nonnull final CollisionResult collisionResult, @Nullable BlockCollisionData startCollision, final boolean acknowledgeDamage)

Method discardIgnorableSlideCollisions.

Parameters:
@Nonnull final CollisionResult collisionResult
@Nullable BlockCollisionData startCollision
final boolean acknowledgeDamage

getFirstCollision

private BlockCollisionData getFirstCollision (@Nonnull final CollisionResult collisionResult, final boolean acknowledgeDamage)

Method getFirstCollision.

Parameters:
@Nonnull final CollisionResult collisionResult
final boolean acknowledgeDamage

bisect

private double bisect (@Nonnull final Vector3d validPosition, @Nonnull final Vector3d invalidPosition, @Nonnull final Vector3d result, @Nonnull final ComponentAccessor componentAccessor)

Method bisect.

Parameters:
@Nonnull final Vector3d validPosition
@Nonnull final Vector3d invalidPosition
@Nonnull final Vector3d result
@Nonnull final ComponentAccessor componentAccessor

shortenSlide

private double shortenSlide (@Nonnull final Vector3d translation, double endSlide)

Method shortenSlide.

Parameters:
@Nonnull final Vector3d translation
double endSlide

shortenMovement

private double shortenMovement (@Nonnull final Vector3d start, @Nonnull final Vector3d end, @Nonnull final Vector3d result)

Method shortenMovement.

Parameters:
@Nonnull final Vector3d start
@Nonnull final Vector3d end
@Nonnull final Vector3d result

validateTranslation

private void validateTranslation (@Nonnull final Vector3d translation, final String kind)

Method validateTranslation.

Parameters:
@Nonnull final Vector3d translation
final String kind

validateSpeeds

private void validateSpeeds (@Nonnull final Ref ref, @Nonnull final String kind, @Nonnull final ComponentAccessor componentAccessor)

Method validateSpeeds.

Parameters:
@Nonnull final Ref ref
@Nonnull final String kind
@Nonnull final ComponentAccessor componentAccessor

lockOrientation

private void lockOrientation (@Nonnull final Steering steering, @Nonnull final Vector3d translation, final float heading)

Method lockOrientation.

Parameters:
@Nonnull final Steering steering
@Nonnull final Vector3d translation
final float heading

computeBlendHeading

private float computeBlendHeading (final float heading, final float moveHeading, final double dt, final double speedEstimate, final double relativeTurnSpeed)

Method computeBlendHeading.

Parameters:
final float heading
final float moveHeading
final double dt
final double speedEstimate
final double relativeTurnSpeed

computeBlendTurnAngle

private float computeBlendTurnAngle (final float heading, final float moveHeading)

Method computeBlendTurnAngle.

Parameters:
final float heading
final float moveHeading

computeClimbMove

private double computeClimbMove (@Nonnull final Vector3d climbDirection, double climbDistance, double distance, @Nonnull final Vector3d translation)

Method computeClimbMove.

Parameters:
@Nonnull final Vector3d climbDirection
double climbDistance
double distance
@Nonnull final Vector3d translation

computeDescendDirection

private void computeDescendDirection (@Nonnull final Vector3d translation)

Method computeDescendDirection.

Parameters:
@Nonnull final Vector3d translation

computeClimbSpeed

private double computeClimbSpeed (final double walkSpeed)

Method computeClimbSpeed.

Parameters:
final double walkSpeed

tryClimb

private boolean tryClimb (@Nonnull final Vector3d translation, final boolean avoidingBlockDamage, final boolean relaxMoveConstraints, @Nonnull final ComponentAccessor componentAccessor)

Method tryClimb.

Parameters:
@Nonnull final Vector3d translation
final boolean avoidingBlockDamage
final boolean relaxMoveConstraints
@Nonnull final ComponentAccessor componentAccessor

computeClimbHeight

private double computeClimbHeight (@Nonnull final Vector3d position, @Nonnull final Vector3d direction, double height, final double forward, @Nullable final Vector3d targetPosition, @Nonnull final Vector2d results, final boolean acknowledgeDamage, boolean relaxMoveConstraints, @Nonnull final ComponentAccessor componentAccessor)

Method computeClimbHeight.

Parameters:
@Nonnull final Vector3d position
@Nonnull final Vector3d direction
double height
final double forward
@Nullable final Vector3d targetPosition
@Nonnull final Vector2d results
final boolean acknowledgeDamage
boolean relaxMoveConstraints
@Nonnull final ComponentAccessor componentAccessor

isDropBlocked

private boolean isDropBlocked (@Nonnull final Vector3d position, final double maxDropHeight, final boolean updatePosition, final boolean acknowledgeDamage, boolean relaxedMoveConstraints, @Nonnull final ComponentAccessor componentAccessor)

Method isDropBlocked.

Parameters:
@Nonnull final Vector3d position
final double maxDropHeight
final boolean updatePosition
final boolean acknowledgeDamage
boolean relaxedMoveConstraints
@Nonnull final ComponentAccessor componentAccessor

dropDistance

private double dropDistance (@Nonnull final Vector3d position, final double maxTestDistance, @Nonnull final ComponentAccessor componentAccessor)

Method dropDistance.

Parameters:
@Nonnull final Vector3d position
final double maxTestDistance
@Nonnull final ComponentAccessor componentAccessor

findDropBlockCollision

private BlockCollisionData findDropBlockCollision (@Nonnull final Vector3d position, final double maxTestDistance, @Nonnull final ComponentAccessor componentAccessor)

Method findDropBlockCollision.

Parameters:
@Nonnull final Vector3d position
final double maxTestDistance
@Nonnull final ComponentAccessor componentAccessor

isClimbable

private boolean isClimbable (@Nonnull final BlockType blockType, @Nonnull final Fluid fluid, final boolean avoidDamageBlocks)

Method isClimbable.

Parameters:
@Nonnull final BlockType blockType
@Nonnull final Fluid fluid
final boolean avoidDamageBlocks

isValidWalkPosition

private boolean isValidWalkPosition (@Nonnull final Ref chunkRef, @Nonnull final ComponentAccessor chunkStore, final double x, final double y, final double z, final boolean acknowledgeDamage, final boolean relaxedMoveConstraints)

Method isValidWalkPosition.

Parameters:
@Nonnull final Ref chunkRef
@Nonnull final ComponentAccessor chunkStore
final double x
final double y
final double z
final boolean acknowledgeDamage
final boolean relaxedMoveConstraints

maxMoveFactor

private double maxMoveFactor (@Nonnull final Vector3d position, @Nonnull final Vector3d velocity, final boolean acknowledgeDamage, @Nonnull final ComponentAccessor componentAccessor)

Method maxMoveFactor.

Parameters:
@Nonnull final Vector3d position
@Nonnull final Vector3d velocity
final boolean acknowledgeDamage
@Nonnull final ComponentAccessor componentAccessor

AscentAnimationType

public private AscentAnimationType (final String description)

Method AscentAnimationType.

Parameters:
final String description

get

public String get ()

Method get.

DescentAnimationType

public private DescentAnimationType (final String description)

Method DescentAnimationType.

Parameters:
final String description