Module net.minestom.server
Class NoPhysicsNodeFollower
java.lang.Object
net.minestom.server.entity.pathfinding.followers.NoPhysicsNodeFollower
- All Implemented Interfaces:
NodeFollower
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the follower is at the specified pointvoid
jump
(float height) void
Jumpdouble
Get the movement speed of the followervoid
moveTowards
(Point direction, double speed, Point lookAt) Used to move the entity towarddirection
in the X and Z axis Gravity is still applied but the entity will not attempt to jump Also update the yaw/pitch of the entity to look along 'direction'
-
Constructor Details
-
NoPhysicsNodeFollower
-
-
Method Details
-
moveTowards
Used to move the entity towarddirection
in the X and Z axis Gravity is still applied but the entity will not attempt to jump Also update the yaw/pitch of the entity to look along 'direction'- Specified by:
moveTowards
in interfaceNodeFollower
- Parameters:
direction
- the targeted positionspeed
- define how far the entity will movelookAt
- the point to look at
-
jump
Description copied from interface:NodeFollower
Jump- Specified by:
jump
in interfaceNodeFollower
-
isAtPoint
Description copied from interface:NodeFollower
Check if the follower is at the specified point- Specified by:
isAtPoint
in interfaceNodeFollower
- Parameters:
point
- the point to check- Returns:
- true if the follower is at the point
-
jump
public void jump(float height) -
movementSpeed
public double movementSpeed()Description copied from interface:NodeFollower
Get the movement speed of the follower- Specified by:
movementSpeed
in interfaceNodeFollower
- Returns:
- the movement speed
-