ME P2P tunnels

This commit is contained in:
AlgorithmX2
2014-01-21 22:52:33 -06:00
parent 34976a4ac8
commit 0016857b03
4 changed files with 250 additions and 12 deletions
+45
View File
@@ -0,0 +1,45 @@
package appeng.me.cache.helpers;
import java.util.HashMap;
import java.util.concurrent.Callable;
import appeng.api.networking.IGridNode;
import appeng.core.AELog;
import appeng.parts.p2p.PartP2PTunnelME;
public class Connections implements Callable
{
final private PartP2PTunnelME me;
final public HashMap<IGridNode, TunnelConnection> connections = new HashMap();
public boolean create = false;
public boolean destroy = false;
public Connections(PartP2PTunnelME o) {
me = o;
}
@Override
public Object call() throws Exception
{
me.updateConnections( this );
return null;
}
public void markDestroy()
{
create = false;
destroy = true;
AELog.info( "markDestroy" );
}
public void markCreate()
{
create = true;
destroy = false;
AELog.info( "markCreate" );
}
};