Class VectorNode
java.lang.Object
net.citizensnpcs.api.astar.AStarNode
net.citizensnpcs.api.astar.pathfinder.VectorNode
- All Implemented Interfaces:
- Comparable<AStarNode>,- PathPoint
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.citizensnpcs.api.astar.pathfinder.PathPointPathPoint.PathCallback
- 
Constructor SummaryConstructorsConstructorDescriptionVectorNode(VectorGoal goal, Location location, BlockSource source, BlockExaminer... examiners) VectorNode(VectorNode parent, VectorGoal goal, Vector location, BlockSource source, BlockExaminer... examiners) VectorNode(VectorNode parent, Vector location, net.citizensnpcs.api.astar.pathfinder.VectorNode.PathInfo info) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCallback(PathPoint.PathCallback callback) Adds a path callback that will be executed if this path point is executed.createAtOffset(Vector mod) Returns a new PathPoint at a given Vector.floatdistance(VectorNode to) booleangetGoal()Gets the destination VectorgetNeighbours(BlockSource source, PathPoint point) getNeighbours(BlockSource source, PathPoint point, boolean checkPassable) Gets the parent PathPointGets the list of manual path vectorsGets the vector represented by this pointinthashCode()floatheuristicDistance(Vector goal) voidsetPathVectors(List<Vector> vectors) Sets the path vectors that will be used at pathfinding time.voidSets the vector location of this pointMethods inherited from class net.citizensnpcs.api.astar.AStarNodecompareTo, getParent, getPathCost, orderedPath
- 
Constructor Details- 
VectorNodepublic VectorNode(VectorGoal goal, Location location, BlockSource source, BlockExaminer... examiners) 
- 
VectorNodepublic VectorNode(VectorNode parent, Vector location, net.citizensnpcs.api.astar.pathfinder.VectorNode.PathInfo info) 
- 
VectorNodepublic VectorNode(VectorNode parent, VectorGoal goal, Vector location, BlockSource source, BlockExaminer... examiners) 
 
- 
- 
Method Details- 
addCallbackDescription copied from interface:PathPointAdds a path callback that will be executed if this path point is executed.- Specified by:
- addCallbackin interface- PathPoint
 
- 
buildPlan
- 
createAtOffsetDescription copied from interface:PathPointReturns a new PathPoint at a given Vector.- Specified by:
- createAtOffsetin interface- PathPoint
 
- 
distance
- 
equals
- 
getGoalDescription copied from interface:PathPointGets the destination Vector
- 
getNeighbours- Specified by:
- getNeighboursin class- AStarNode
 
- 
getNeighbours
- 
getNeighbours
- 
getParentPointDescription copied from interface:PathPointGets the parent PathPoint- Specified by:
- getParentPointin interface- PathPoint
 
- 
getPathVectorsDescription copied from interface:PathPointGets the list of manual path vectors- Specified by:
- getPathVectorsin interface- PathPoint
- See Also:
 
- 
getVectorDescription copied from interface:PathPointGets the vector represented by this point
- 
hashCodepublic int hashCode()
- 
heuristicDistance
- 
setPathVectorsDescription copied from interface:PathPointSets the path vectors that will be used at pathfinding time. For example, setting a list of vectors to path through in order to reach this pathpoint.- Specified by:
- setPathVectorsin interface- PathPoint
 
- 
setVectorDescription copied from interface:PathPointSets the vector location of this point
 
-