Class PathFollower

java.lang.Object
com.hypixel.hytale.server.npc.navigation.PathFollower

public class PathFollower extends Object
Since:
2018-09-25
  • Constructor Details

    • PathFollower

      public PathFollower()
  • Method Details

    • setPathSmoothing

      public void setPathSmoothing(int pathSmoothing)
    • getRelativeSpeed

      public double getRelativeSpeed()
    • setRelativeSpeed

      public void setRelativeSpeed(double relativeSpeed)
    • setRelativeSpeedWaypoint

      public void setRelativeSpeedWaypoint(double relativeSpeedWaypoint)
    • setWaypointRadius

      public void setWaypointRadius(double waypointRadius)
    • setDebugNodes

      public void setDebugNodes(boolean debugNodes)
    • shouldSmoothPath

      public boolean shouldSmoothPath()
    • setRejectionWeight

      public void setRejectionWeight(double rejectionWeight)
    • setBlendHeading

      public void setBlendHeading(double blendHeading)
    • getCurrentWaypoint

      @Nullable public IWaypoint getCurrentWaypoint()
    • getCurrentWaypointPosition

      @Nullable public org.joml.Vector3d getCurrentWaypointPosition()
    • getNextWaypoint

      @Nullable public IWaypoint getNextWaypoint()
    • getNextWaypointPosition

      @Nullable public org.joml.Vector3d getNextWaypointPosition()
    • setPath

      public void setPath(IWaypoint firstWaypoint, @Nonnull org.joml.Vector3d startPosition)
    • clearPath

      public void clearPath()
    • pathInFinalStage

      public boolean pathInFinalStage()
    • freezeWaypoint

      public boolean freezeWaypoint()
    • isWaypointFrozen

      public boolean isWaypointFrozen()
    • setWaypointFrozen

      public void setWaypointFrozen(boolean waypointFrozen)
    • executePath

      public void executePath(@Nonnull org.joml.Vector3d currentPosition, @Nonnull MotionController activeMotionController, @Nonnull Steering desiredSteering)
    • computeRejection

      public void computeRejection(@Nonnull org.joml.Vector3d currentPosition, @Nonnull org.joml.Vector3d target, @Nonnull MotionController activeMotionController)
    • updateCurrentTarget

      public boolean updateCurrentTarget(@Nonnull org.joml.Vector3d entityPosition, @Nonnull MotionController motionController)
    • smoothPath

      public void smoothPath(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nonnull MotionController motionController, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor)