Applied-Energistics-2-tiler.../src/api/java/appeng/api/networking/IGridVisitor.java

22 lines
436 B
Java
Raw Normal View History

package appeng.api.networking;
/**
* Simple Visitor pattern access to network nodes.
*/
public interface IGridVisitor
{
/**
* Called for each node on the network.
*
* By returning false your informing the host to stop visiting nodes beyond the current node.
*
* @param n
* the current node.
*
* @return true to continue visiting nodes beyond this node.
*/
public boolean visitNode(IGridNode n);
}