Err too much.

This commit is contained in:
AlgorithmX2
2014-01-20 10:41:37 -06:00
parent 5652ec30ec
commit 834e9c04c5
159 changed files with 7953 additions and 1541 deletions
+15 -9
View File
@@ -21,6 +21,7 @@ import appeng.api.util.DimensionalCoord;
import appeng.api.util.IOrientable;
import appeng.helpers.TickHandler;
import appeng.me.GridAccessException;
import appeng.me.cache.P2PCache;
import appeng.parts.networking.PartCable;
import appeng.tile.AEBaseTile;
import appeng.util.Platform;
@@ -97,15 +98,6 @@ public class AENetworkProxy implements IGridBlock
return validSides;
}
@Override
public boolean isNetworkMachineActive()
{
if ( node == null )
return false;
return node.getGrid().isReady();
}
public void setValidSides(EnumSet<ForgeDirection> validSides)
{
this.validSides = validSides;
@@ -231,6 +223,20 @@ public class AENetworkProxy implements IGridBlock
return pg;
}
public P2PCache getP2P() throws GridAccessException
{
IGrid grid = getGrid();
if ( grid == null )
throw new GridAccessException();
P2PCache pg = grid.getCache( P2PCache.class );
if ( pg == null )
throw new GridAccessException();
return pg;
}
@Override
public boolean isWorldAccessable()
{