Interface NodeFollower

All Known Implementing Classes:
FlyingNodeFollower, GroundNodeFollower, NoPhysicsNodeFollower, WaterNodeFollower

public interface NodeFollower
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAtPoint(@NotNull Point point)
    Check if the follower is at the specified point
    void
    jump(@Nullable Point point, @Nullable Point target)
    Jump
    double
    Get the movement speed of the follower
    void
    moveTowards(@NotNull Point target, double speed, @NotNull Point lookAt)
    Move towards the specified point
  • Method Details

    • moveTowards

      void moveTowards(@NotNull @NotNull Point target, double speed, @NotNull @NotNull Point lookAt)
      Move towards the specified point
      Parameters:
      target - the point to move towards
      speed - the speed to move at
      lookAt - the point to look at
    • jump

      void jump(@Nullable @Nullable Point point, @Nullable @Nullable Point target)
      Jump
    • isAtPoint

      boolean isAtPoint(@NotNull @NotNull Point point)
      Check if the follower is at the specified point
      Parameters:
      point - the point to check
      Returns:
      true if the follower is at the point
    • movementSpeed

      double movementSpeed()
      Get the movement speed of the follower
      Returns:
      the movement speed