Class BodyMotionLand
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<AStarWithTarget>
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindWithTarget
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFind
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionLand
- 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
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleFields inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFind
abortDistance, abortDistanceSquared, distance, distanceSquared, effectiveDistanceSquared, heightDifferenceMax, heightDifferenceMin, reachable, seek, switchToSteeringDistance, switchToSteeringDistanceSquared, tempDirectionVectorFields inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindWithTarget
adjustRangeByHitboxSize, coneDirection, conePosition, cosHalfRecomputeConeAngle, lastPathedPosition, minMoveDistanceRecompute, minMoveDistanceRecomputeSquared, minMoveDistanceReproject, minMoveDistanceReprojectSquared, minMoveDistanceWait, minMoveDistanceWaitSquared, other, self, selfBoundingBox, targetBoundingBox, waitForTargetMovementFields 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
ConstructorsConstructorDescriptionBodyMotionLand(BuilderBodyMotionLand builderMotionLand, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanComputeMotion(Ref<EntityStore> ref, Role role, InfoProvider positionProvider, ComponentAccessor<EntityStore> componentAccessor) booleancomputeSteering(Ref<EntityStore> ref, Role role, InfoProvider infoProvider, double dt, Steering desiredSteering, ComponentAccessor<EntityStore> componentAccessor) protected booleanisGoalReached(Ref<EntityStore> ref, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, Vector3d position, Vector3d targetPosition, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFind
canReachTarget, canSwitchToSteering, computeSteering, containsPosition, containsPosition, estimateToGoal, findBestPath, isBoundingBoxesOverlapping, isGoalReached, lookAtTarget, onDeferring, onThrottling, shouldSkipSteeringMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindWithTarget
activate, decorateDebugString, forceRecomputePath, getLastAccessibleTargetPosition, getLastTargetPosition, isGoalReached, mustAbortThrottling, mustRecomputePath, onBlockedPath, onNoPathFound, onSteering, shouldDeferPathComputation, startComputePathMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase
computeDesiredYTranslation, continuePathFinder, deactivate, getRelativeSpeed, resetThrottleCount, scaleSteering, setNavState, setNavStateAborted, setNavStateAtGoal, setNavStateBlocked, setNavStateComputing, setNavStateDeferred, setNavStateFollowing, setNavStateInit, setNavStateSteering, setNavStateThrottling, setPath, 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
-
goalLenience
protected final double goalLenience -
goalLenienceSquared
protected final double goalLenienceSquared
-
-
Constructor Details
-
BodyMotionLand
public BodyMotionLand(@Nonnull BuilderBodyMotionLand builderMotionLand, @Nonnull BuilderSupport support)
-
-
Method Details
-
computeSteering
public boolean computeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable InfoProvider infoProvider, double dt, @Nonnull Steering desiredSteering, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
computeSteeringin interfaceMotion- Overrides:
computeSteeringin classBodyMotionFindBase<AStarWithTarget>
-
canComputeMotion
public boolean canComputeMotion(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable InfoProvider positionProvider, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
canComputeMotionin classBodyMotionFind
-
isGoalReached
protected boolean isGoalReached(@Nonnull Ref<EntityStore> ref, @Nonnull com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nonnull Vector3d position, @Nonnull Vector3d targetPosition, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
isGoalReachedin classBodyMotionFind
-