Mekanism-tilera-Edition/common/universalelectricity/core/path/IPathCallBack.java

25 lines
704 B
Java
Raw Normal View History

2013-04-13 16:35:13 +02:00
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<Vector3> 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);
}