override = ((IPipeConnection) with).overridePipeConnection(PipeType.POWER, side.getOpposite());
}
}
}
if (override == IPipeConnection.ConnectOverride.DISCONNECT) {
return new IConnectionOverrideResult() {
@Override public boolean forceConnect() {return false;}
@Override public boolean forceDisconnect() {return true;}
};
}
if(override == IPipeConnection.ConnectOverride.CONNECT) {
return new IConnectionOverrideResult() {
@Override public boolean forceConnect() {return true;}
@Override public boolean forceDisconnect() {return false;}
};
}
}
return new IConnectionOverrideResult() {
@Override public boolean forceConnect() {return false;}
@Override public boolean forceDisconnect() {return false;}
};
}