if(!ignoreConnectionMode && getConnectionMode(dir) == ConnectionMode.DISABLED) {
return false;
}
if(te instanceof IGridProxyable) {
AENetworkProxy proxy = ((IGridProxyable) te).getProxy();
return proxy != null && proxy.getConnectableSides().contains(dir.getOpposite());
} else if(te instanceof IPartHost) {
IPart part = ((IPartHost) te).getPart(dir.getOpposite());
if(part == null) {
part = ((IPartHost) te).getPart(ForgeDirection.UNKNOWN);
return part != null;