net.minestom.server.entity.pathfinding.followers.NodeFollower Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.entity.pathfinding.followers;
import net.minestom.server.collision.PhysicsResult;
import net.minestom.server.coordinate.Point;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface NodeFollower {
/**
* Move towards the specified point
*
* @param target the point to move towards
* @param speed the speed to move at
* @param lookAt the point to look at
*/
void moveTowards(@NotNull Point target, double speed, @NotNull Point lookAt);
/**
* Jump
*/
void jump(@Nullable Point point, @Nullable Point target);
/**
* Check if the follower is at the specified point
* @param point the point to check
* @return true if the follower is at the point
*/
boolean isAtPoint(@NotNull Point point);
/**
* Get the movement speed of the follower
* @return the movement speed
*/
double movementSpeed();
}