public class MCNavigationStrategy extends AbstractPathStrategy
Modifier and Type | Class and Description |
---|---|
static interface |
MCNavigationStrategy.MCNavigator |
Modifier and Type | Method and Description |
---|---|
Iterable<org.bukkit.util.Vector> |
getPath() |
org.bukkit.Location |
getTargetAsLocation() |
TargetType |
getTargetType() |
void |
stop()
Forcibly stops pathfinding.
|
String |
toString() |
boolean |
update()
Updates and runs the pathfinding strategy on its current NPC and destination.
|
clearCancelReason, getCancelReason, setCancelReason
public Iterable<org.bukkit.util.Vector> getPath()
public org.bukkit.Location getTargetAsLocation()
public TargetType getTargetType()
getTargetType
in interface PathStrategy
getTargetType
in class AbstractPathStrategy
TargetType
of this strategypublic void stop()
PathStrategy
public boolean update()
PathStrategy
Copyright © 2021. All rights reserved.