2013-12-27 23:59:59 +01:00
|
|
|
package appeng.me.pathfinding;
|
|
|
|
|
2014-09-20 22:24:40 +02:00
|
|
|
import appeng.api.networking.IGridConnectionVisitor;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.api.networking.IGridConnection;
|
|
|
|
import appeng.api.networking.IGridNode;
|
|
|
|
import appeng.me.GridConnection;
|
|
|
|
import appeng.me.GridNode;
|
|
|
|
|
2014-09-20 22:24:40 +02:00
|
|
|
public class ControllerChannelUpdater implements IGridConnectionVisitor
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean visitNode(IGridNode n)
|
|
|
|
{
|
|
|
|
GridNode gn = (GridNode) n;
|
|
|
|
gn.finalizeChannels();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void visitConnection(IGridConnection gcc)
|
|
|
|
{
|
|
|
|
GridConnection gc = (GridConnection) gcc;
|
|
|
|
gc.finalizeChannels();
|
|
|
|
}
|
|
|
|
}
|