package universalelectricity.core.path; import java.util.Set; import universalelectricity.core.vector.Vector3; public interface IPathCallBack { /** * @param finder - The Pathfinder object. * @param currentNode - The node being iterated through. * @return A set of nodes connected to the currentNode. Essentially one should return a set of * neighboring nodes. */ public Set getConnectedNodes(Pathfinder finder, Vector3 currentNode); /** * Called when looping through nodes. * * @param finder - The Pathfinder. * @param node - The node being searched. * @return True to stop the path finding operation. */ public boolean onSearch(Pathfinder finder, Vector3 node); }