public class AStarAlgorithm extends Object implements IAlgorithm
IAlgorithm for A* Pathfinding.| Constructor and Description |
|---|
AStarAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
List<org.bukkit.util.Vector> |
calculatePath(GlowBlock startPoint,
GlowBlock endPoint,
Map<org.bukkit.Material,Double> materialWeights,
org.bukkit.Material... blockedMaterials)
Thanks to www.redblobgames.com/pathfinding/a-star/implementation.html
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCornerNeighbors, getFaceNeighbors, getNeighborspublic List<org.bukkit.util.Vector> calculatePath(GlowBlock startPoint, GlowBlock endPoint, Map<org.bukkit.Material,Double> materialWeights, org.bukkit.Material... blockedMaterials)
calculatePath in interface IAlgorithmstartPoint - The starting position.endPoint - The ending position.materialWeights - A map containing a material key, with
a cost as the value.blockedMaterials - A varargs of materials that should be
blocked from pathing.Vectors that make up the path found during calculation.Copyright © 2021. All rights reserved.