Interface NodeFollower
- All Known Implementing Classes:
FlyingNodeFollower,GroundNodeFollower,NoPhysicsNodeFollower,WaterNodeFollower
public interface NodeFollower
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAtPoint(@NotNull net.minestom.server.coordinate.Point point) Check if the follower is at the specified pointvoidjump(@Nullable net.minestom.server.coordinate.Point point, @Nullable net.minestom.server.coordinate.Point target) JumpdoubleGet the movement speed of the followervoidmoveTowards(@NotNull net.minestom.server.coordinate.Point target, double speed, @NotNull net.minestom.server.coordinate.Point lookAt) Move towards the specified point
-
Method Details
-
moveTowards
void moveTowards(@NotNull @NotNull net.minestom.server.coordinate.Point target, double speed, @NotNull @NotNull net.minestom.server.coordinate.Point lookAt) Move towards the specified point- Parameters:
target- the point to move towardsspeed- the speed to move atlookAt- the point to look at
-
jump
void jump(@Nullable @Nullable net.minestom.server.coordinate.Point point, @Nullable @Nullable net.minestom.server.coordinate.Point target) Jump -
isAtPoint
boolean isAtPoint(@NotNull @NotNull net.minestom.server.coordinate.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
-