public class StraightLineNavigationStrategy extends AbstractPathStrategy
Constructor and Description |
---|
StraightLineNavigationStrategy(NPC npc,
org.bukkit.entity.Entity target,
NavigatorParameters params) |
StraightLineNavigationStrategy(NPC npc,
org.bukkit.Location dest,
NavigatorParameters params) |
Modifier and Type | Method and Description |
---|---|
Iterable<org.bukkit.util.Vector> |
getPath() |
org.bukkit.Location |
getTargetAsLocation() |
void |
stop()
Forcibly stops pathfinding.
|
boolean |
update()
Updates and runs the pathfinding strategy on its current NPC and destination.
|
clearCancelReason, getCancelReason, getTargetType, setCancelReason
public StraightLineNavigationStrategy(NPC npc, org.bukkit.entity.Entity target, NavigatorParameters params)
public StraightLineNavigationStrategy(NPC npc, org.bukkit.Location dest, NavigatorParameters params)
public Iterable<org.bukkit.util.Vector> getPath()
public org.bukkit.Location getTargetAsLocation()
public void stop()
PathStrategy
public boolean update()
PathStrategy
Copyright © 2021. All rights reserved.