public class VectorNode extends AStarNode implements PathPoint
PathPoint.PathCallback
Constructor and Description |
---|
VectorNode(VectorGoal goal,
org.bukkit.Location location,
BlockSource source,
BlockExaminer... examiners) |
VectorNode(VectorNode parent,
VectorGoal goal,
org.bukkit.util.Vector location,
BlockSource source,
BlockExaminer... examiners) |
VectorNode(VectorNode parent,
org.bukkit.util.Vector location,
net.citizensnpcs.api.astar.pathfinder.VectorNode.PathInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(PathPoint.PathCallback callback) |
Plan |
buildPlan() |
VectorNode |
createAtOffset(org.bukkit.util.Vector mod) |
float |
distance(VectorNode to) |
boolean |
equals(Object obj) |
org.bukkit.util.Vector |
getGoal() |
Iterable<AStarNode> |
getNeighbours() |
List<PathPoint> |
getNeighbours(BlockSource source,
PathPoint point) |
PathPoint |
getParentPoint() |
org.bukkit.util.Vector |
getVector() |
int |
hashCode() |
float |
heuristicDistance(org.bukkit.util.Vector goal) |
void |
setVector(org.bukkit.util.Vector vector) |
compareTo, getParent, getParents, getPathCost
public VectorNode(VectorGoal goal, org.bukkit.Location location, BlockSource source, BlockExaminer... examiners)
public VectorNode(VectorNode parent, org.bukkit.util.Vector location, net.citizensnpcs.api.astar.pathfinder.VectorNode.PathInfo info)
public VectorNode(VectorNode parent, VectorGoal goal, org.bukkit.util.Vector location, BlockSource source, BlockExaminer... examiners)
public void addCallback(PathPoint.PathCallback callback)
addCallback
in interface PathPoint
public VectorNode createAtOffset(org.bukkit.util.Vector mod)
createAtOffset
in interface PathPoint
public float distance(VectorNode to)
public Iterable<AStarNode> getNeighbours()
getNeighbours
in class AStarNode
public List<PathPoint> getNeighbours(BlockSource source, PathPoint point)
public PathPoint getParentPoint()
getParentPoint
in interface PathPoint
public float heuristicDistance(org.bukkit.util.Vector goal)
Copyright © 2021. All rights reserved.