Class BodyMotionLeave
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.BodyMotionBase
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase<AStarBase>
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionLeave
- All Implemented Interfaces:
BodyMotion,Motion,RoleStateChange,AStarEvaluator,IAnnotatedComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase
BodyMotionFindBase.DebugFlags -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase
aStar, aStarDebug, canSkipSteering, dbgDisplayString, dbgMaps, dbgMotionState, dbgNodes, dbgOpens, dbgPath, dbgProfile, dbgRebuild, dbgStatus, dbgStay, debugString, desiredAltitudeWeight, isAvoidingBlockDamage, isRelaxedMoveConstraints, minPathLength, minPathLengthSquared, nodesPerTick, passedWaypoint, pathFollower, probeMoveData, sharedNodePoolProvider, skipSteering, targetDeltaSquared, throttleCount, throttleDelay, throttleDelayMax, throttleDelayMin, throttleIgnoreCount, throttleTime, useBestPath, usePathfinder, useSteering, wasAvoidingBlockDamage, wasSteeringFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
ConstructorsConstructorDescriptionBodyMotionLeave(BuilderBodyMotionLeave builderMotionLeave, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionfloatestimateToGoal(AStarBase aStarBase, Vector3d fromPosition, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController) voidfindBestPath(AStarBase aStarBase, com.hypixel.hytale.server.npc.movement.controllers.MotionController controller) booleanisGoalReached(Ref<EntityStore> ref, com.hypixel.hytale.server.npc.movement.controllers.MotionController controller, Vector3d position, ComponentAccessor<EntityStore> componentAccessor) booleanisGoalReached(Ref<EntityStore> ref, AStarBase aStarBase, AStarNode aStarNode, com.hypixel.hytale.server.npc.movement.controllers.MotionController controller, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase
activate, canComputeMotion, canSwitchToSteering, computeDesiredYTranslation, computeSteering, computeSteering, continuePathFinder, deactivate, decorateDebugString, forceRecomputePath, getRelativeSpeed, mustAbortThrottling, mustRecomputePath, onBlockedPath, onDeferring, onNoPathFound, onSteering, onThrottling, resetThrottleCount, scaleSteering, setNavState, setNavStateAborted, setNavStateAtGoal, setNavStateBlocked, setNavStateComputing, setNavStateDeferred, setNavStateFollowing, setNavStateInit, setNavStateSteering, setNavStateThrottling, setPath, shouldDeferPathComputation, shouldSkipSteering, startComputePath, startPathFinder, updatePathFollowerMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.instructions.BodyMotion
getSteeringMotionMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Motion
preComputeSteeringMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
distanceSquared
protected final double distanceSquared
-
-
Constructor Details
-
BodyMotionLeave
public BodyMotionLeave(@Nonnull BuilderBodyMotionLeave builderMotionLeave, @Nonnull BuilderSupport support)
-
-
Method Details
-
isGoalReached
public boolean isGoalReached(Ref<EntityStore> ref, @Nonnull com.hypixel.hytale.server.npc.movement.controllers.MotionController controller, Vector3d position, ComponentAccessor<EntityStore> componentAccessor) - Specified by:
isGoalReachedin classBodyMotionFindBase<AStarBase>
-