22 lines
436 B
Java
22 lines
436 B
Java
|
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);
|
||
|
|
||
|
}
|