All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.entity.pathfinding.followers.NodeFollower Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy